using System; using TrueCraft.API; using TrueCraft.API.Logic; namespace TrueCraft.Core.Logic.Blocks { public class WoodenPlanksBlock : BlockProvider, ICraftingRecipe, IBurnableItem { public static readonly byte BlockID = 0x05; public override byte ID { get { return 0x05; } } public override double BlastResistance { get { return 15; } } public override double Hardness { get { return 2; } } public override byte Luminance { get { return 0; } } public override string DisplayName { get { return "Wooden Planks"; } } public override bool Flammable { get { return true; } } public TimeSpan BurnTime { get { return TimeSpan.FromSeconds(15); } } public override SoundEffectClass SoundEffect { get { return SoundEffectClass.Wood; } } public override Tuple GetTextureMap(byte metadata) { return new Tuple(4, 0); } public ItemStack[,] Pattern { get { return new[,] { { new ItemStack(WoodBlock.BlockID) } }; } } public ItemStack Output { get { return new ItemStack(BlockID, 4); } } public bool SignificantMetadata { get { return false; } } } }