51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using System;
|
|
using TrueCraft.API.Logic;
|
|
using TrueCraft.API;
|
|
using TrueCraft.Core.Logic.Blocks;
|
|
|
|
namespace TrueCraft.Core.Logic.Items
|
|
{
|
|
public class StickItem : ItemProvider, ICraftingRecipe, IBurnableItem
|
|
{
|
|
public static readonly short ItemID = 0x118;
|
|
|
|
public override short ID { get { return 0x118; } }
|
|
|
|
public override Tuple<int, int> GetIconTexture(byte metadata)
|
|
{
|
|
return new Tuple<int, int>(5, 3);
|
|
}
|
|
|
|
public override string DisplayName { get { return "Stick"; } }
|
|
|
|
public TimeSpan BurnTime { get { return TimeSpan.FromSeconds(5); } }
|
|
|
|
public ItemStack[,] Pattern
|
|
{
|
|
get
|
|
{
|
|
return new[,]
|
|
{
|
|
{ new ItemStack(WoodenPlanksBlock.BlockID) },
|
|
{ new ItemStack(WoodenPlanksBlock.BlockID) }
|
|
};
|
|
}
|
|
}
|
|
|
|
public ItemStack Output
|
|
{
|
|
get
|
|
{
|
|
return new ItemStack(ItemID, 4);
|
|
}
|
|
}
|
|
|
|
public bool SignificantMetadata
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
} |