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.Core/Logic/Blocks/WoodenPlanksBlock.cs
Drew DeVault 2395c535b8 Fix build
2015-10-06 07:48:49 -04:00

63 lines
1.5 KiB
C#

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<int, int> GetTextureMap(byte metadata)
{
return new Tuple<int, int>(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; }
}
}
}