351ab96f99
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
27 lines
737 B
C#
27 lines
737 B
C#
using System;
|
|
using TrueCraft.API.Logic;
|
|
|
|
namespace TrueCraft.Core.Logic.Blocks
|
|
{
|
|
public class SignBlock : BlockProvider
|
|
{
|
|
public static readonly byte BlockID = 0x44;
|
|
|
|
public override byte ID { get { return 0x44; } }
|
|
|
|
public override double BlastResistance { get { return 5; } }
|
|
|
|
public override double Hardness { get { return 1; } }
|
|
|
|
public override byte Luminance { get { return 0; } }
|
|
|
|
public override bool Opaque { get { return false; } }
|
|
|
|
public override string DisplayName { get { return "Sign"; } }
|
|
|
|
public override Tuple<int, int> GetTextureMap(byte metadata)
|
|
{
|
|
return new Tuple<int, int>(4, 0);
|
|
}
|
|
}
|
|
} |