TrueCraft/TrueCraft.Core/Logic/Blocks/LockedChestBlock.cs
Daniel Vidmar 351ab96f99 Block modifications.
Added two new properties.
- Opaque: Whether or not the block is opaque
- LightModifier: The amount removed from the light level as it passes
through the block(for transparent blocks).

Merged all rail block classes into RailBlock.cs and made them extend
RailBlock
2015-01-26 00:14:58 -05:00

27 lines
753 B
C#

using System;
using TrueCraft.API.Logic;
namespace TrueCraft.Core.Logic.Blocks
{
public class LockedChestBlock : BlockProvider
{
public static readonly byte BlockID = 0x5F;
public override byte ID { get { return 0x5F; } }
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 "Locked Chest"; } }
public override Tuple<int, int> GetTextureMap(byte metadata)
{
return new Tuple<int, int>(10, 1);
}
}
}