This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
TrueCraft/TrueCraft.API/Logic/IBlockProvider.cs
2015-01-26 17:05:26 -07:00

23 lines
917 B
C#

using System;
using TrueCraft.API.World;
using TrueCraft.API.Networking;
namespace TrueCraft.API.Logic
{
public interface IBlockProvider
{
byte ID { get; }
double BlastResistance { get; }
double Hardness { get; }
byte Luminance { get; }
bool Opaque { get; }
byte LightModifier { get; }
string DisplayName { get; }
Tuple<int, int> GetTextureMap(byte metadata);
bool BlockRightClicked(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user);
bool BlockPlaced(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user);
void BlockMined(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user);
void BlockUpdate(BlockDescriptor descriptor, IWorld world);
void BlockScheduledEvent(BlockDescriptor descriptor, IWorld world, object data);
}
}