2014-12-28 18:55:46 -07:00
|
|
|
using System;
|
|
|
|
using TrueCraft.API.Logic;
|
|
|
|
|
|
|
|
namespace TrueCraft.Core.Logic.Blocks
|
|
|
|
{
|
|
|
|
public class PistonBlock : BlockProvider
|
|
|
|
{
|
|
|
|
public static readonly byte BlockID = 0x21;
|
|
|
|
|
|
|
|
public override byte ID { get { return 0x21; } }
|
2015-01-22 00:49:50 -05:00
|
|
|
|
|
|
|
public override double BlastResistance { get { return 2.5; } }
|
2014-12-28 18:55:46 -07:00
|
|
|
|
|
|
|
public override double Hardness { get { return 0.5; } }
|
|
|
|
|
2015-01-22 00:49:50 -05:00
|
|
|
public override byte Luminance { get { return 0; } }
|
|
|
|
|
2014-12-28 18:55:46 -07:00
|
|
|
public override string DisplayName { get { return "Piston"; } }
|
|
|
|
|
|
|
|
public override Tuple<int, int> GetTextureMap(byte metadata)
|
|
|
|
{
|
|
|
|
return new Tuple<int, int>(11, 6);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class StickyPistonBlock : BlockProvider
|
|
|
|
{
|
|
|
|
public static readonly byte BlockID = 0x1D;
|
|
|
|
|
|
|
|
public override byte ID { get { return 0x1D; } }
|
|
|
|
|
2015-01-22 00:49:50 -05:00
|
|
|
public override double BlastResistance { get { return 2.5; } }
|
|
|
|
|
2014-12-28 18:55:46 -07:00
|
|
|
public override double Hardness { get { return 0.5; } }
|
|
|
|
|
2015-01-22 00:49:50 -05:00
|
|
|
public override byte Luminance { get { return 0; } }
|
|
|
|
|
2014-12-28 18:55:46 -07:00
|
|
|
public override string DisplayName { get { return "Sticky Piston"; } }
|
|
|
|
|
|
|
|
public override Tuple<int, int> GetTextureMap(byte metadata)
|
|
|
|
{
|
|
|
|
return new Tuple<int, int>(10, 6);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class PistonPlungerBlock : BlockProvider
|
|
|
|
{
|
|
|
|
public static readonly byte BlockID = 0x22;
|
|
|
|
|
|
|
|
public override byte ID { get { return 0x22; } }
|
|
|
|
|
2015-01-22 00:49:50 -05:00
|
|
|
public override double BlastResistance { get { return 2.5; } }
|
|
|
|
|
2014-12-28 18:55:46 -07:00
|
|
|
public override double Hardness { get { return 0.5; } }
|
|
|
|
|
2015-01-22 00:49:50 -05:00
|
|
|
public override byte Luminance { get { return 0; } }
|
|
|
|
|
2014-12-28 18:55:46 -07:00
|
|
|
public override string DisplayName { get { return "Piston Plunger"; } }
|
|
|
|
|
|
|
|
public override Tuple<int, int> GetTextureMap(byte metadata)
|
|
|
|
{
|
|
|
|
return new Tuple<int, int>(11, 6);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class PistonPlaceholderBlock : BlockProvider
|
|
|
|
{
|
|
|
|
public static readonly byte BlockID = 0x24;
|
|
|
|
|
|
|
|
public override byte ID { get { return 0x24; } }
|
|
|
|
|
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; } }
|
|
|
|
|
2014-12-28 18:55:46 -07:00
|
|
|
public override string DisplayName { get { return "Piston Placeholder"; } }
|
|
|
|
}
|
|
|
|
}
|