39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
using TrueCraft.API.Logic;
|
|
using TrueCraft.Core.Logic.Items;
|
|
using TrueCraft.API;
|
|
|
|
namespace TrueCraft.Core.Logic.Blocks
|
|
{
|
|
public class RedstoneDustBlock : BlockProvider
|
|
{
|
|
public static readonly byte BlockID = 0x37;
|
|
|
|
public override byte ID { get { return 0x37; } }
|
|
|
|
public override double BlastResistance { get { return 0; } }
|
|
|
|
public override double Hardness { get { return 0; } }
|
|
|
|
public override byte Luminance { get { return 0; } }
|
|
|
|
public override bool Opaque { get { return false; } }
|
|
|
|
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;
|
|
}
|
|
}
|
|
} |