TrueCraft/TrueCraft.API/Logic/IBlockProvider.cs

31 lines
1.5 KiB
C#
Raw Normal View History

2014-12-28 15:38:58 -07:00
using System;
2015-01-26 17:05:26 -07:00
using TrueCraft.API.World;
using TrueCraft.API.Networking;
using TrueCraft.API.Server;
2015-05-03 16:02:47 -06:00
using fNbt;
2014-12-28 15:38:58 -07:00
namespace TrueCraft.API.Logic
{
public interface IBlockProvider
{
byte ID { get; }
2015-01-22 00:49:50 -05:00
double BlastResistance { get; }
2014-12-28 15:38:58 -07:00
double Hardness { get; }
2015-01-22 00:49:50 -05:00
byte Luminance { get; }
bool Opaque { get; }
2015-05-15 15:12:36 -06:00
bool RenderOpaque { get; }
byte LightModifier { get; }
2014-12-28 15:38:58 -07:00
string DisplayName { get; }
2015-02-09 17:10:44 -07:00
BoundingBox? BoundingBox { get; } // NOTE: Will this eventually need to be metadata-aware?
2014-12-28 18:55:46 -07:00
Tuple<int, int> GetTextureMap(byte metadata);
void GenerateDropEntity(BlockDescriptor descriptor, IWorld world, IMultiplayerServer server);
2015-02-11 22:06:59 -07:00
void BlockLeftClicked(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user);
2015-01-26 17:05:26 -07:00
bool BlockRightClicked(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user);
2015-02-08 16:20:27 -07:00
void BlockPlaced(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user);
2015-01-26 17:05:26 -07:00
void BlockMined(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user);
void BlockUpdate(BlockDescriptor descriptor, BlockDescriptor source, IMultiplayerServer server, IWorld world);
2015-01-26 17:05:26 -07:00
void BlockScheduledEvent(BlockDescriptor descriptor, IWorld world, object data);
void BlockLoadedFromChunk(BlockDescriptor descriptor, IMultiplayerServer server, IWorld world);
2015-05-03 16:02:47 -06:00
void TileEntityLoadedForClient(BlockDescriptor descriptor, IWorld world, NbtCompound compound, IRemoteClient client);
2014-12-28 15:38:58 -07:00
}
}