TrueCraft/TrueCraft.Core/Logic/Blocks/RedstoneDustBlock.cs

39 lines
1.1 KiB
C#
Raw Normal View History

2014-12-28 18:55:46 -07:00
using System;
using TrueCraft.API.Logic;
using TrueCraft.Core.Logic.Items;
using TrueCraft.API;
2014-12-28 18:55:46 -07:00
namespace TrueCraft.Core.Logic.Blocks
{
public class RedstoneDustBlock : BlockProvider
{
public static readonly byte BlockID = 0x37;
public override byte ID { get { return 0x37; } }
2015-01-22 00:49:50 -05:00
public override double BlastResistance { get { return 0; } }
2014-12-28 18:55:46 -07:00
public override double Hardness { get { return 0; } }
2015-01-22 00:49:50 -05:00
public override byte Luminance { get { return 0; } }
public override bool Opaque { get { return false; } }
2015-01-22 00:49:50 -05:00
2014-12-28 18:55:46 -07:00
public override string DisplayName { get { return "Redstone Dust"; } }
public override Tuple<int, int> GetTextureMap(byte metadata)
{
return new Tuple<int, int>(4, 10);
}
protected override ItemStack[] GetDrop(BlockDescriptor descriptor)
{
return new[] { new ItemStack(RedstoneItem.ItemID, 1, descriptor.Metadata) };
}
public override Coordinates3D GetSupportDirection(BlockDescriptor descriptor)
{
return Coordinates3D.Down;
}
2014-12-28 18:55:46 -07:00
}
}