2014-12-28 18:55:46 -07:00
|
|
|
using System;
|
|
|
|
using TrueCraft.API.Logic;
|
2015-02-04 12:58:52 -05:00
|
|
|
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; } }
|
2015-01-26 00:14:58 -05:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
2015-02-04 12:58:52 -05:00
|
|
|
|
|
|
|
protected override ItemStack[] GetDrop(BlockDescriptor descriptor)
|
|
|
|
{
|
|
|
|
return new[] { new ItemStack(RedstoneItem.ItemID, 1, descriptor.Metadata) };
|
|
|
|
}
|
2015-05-08 18:48:19 -04:00
|
|
|
|
|
|
|
public override Coordinates3D GetSupportDirection(BlockDescriptor descriptor)
|
|
|
|
{
|
|
|
|
return Coordinates3D.Down;
|
|
|
|
}
|
2014-12-28 18:55:46 -07:00
|
|
|
}
|
|
|
|
}
|