NorbiPeti
1c5ce37fce
Added API for adding more information on the debug display (not object-oriented yet) Removed the setter for block type to ensure stability Made the block API return defaults if the block no longer exists Added property to check if the block exists Made a struct for the block's color property Added missing block IDs
31 lines
No EOL
581 B
C#
31 lines
No EOL
581 B
C#
namespace GamecraftModdingAPI.Blocks
|
|
{
|
|
public struct BlockColor
|
|
{
|
|
public BlockColors Color;
|
|
public byte Darkness;
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{nameof(Color)}: {Color}, {nameof(Darkness)}: {Darkness}";
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Preset block colours
|
|
/// </summary>
|
|
public enum BlockColors
|
|
{
|
|
Default = byte.MaxValue,
|
|
White = 0,
|
|
Pink,
|
|
Purple,
|
|
Blue,
|
|
Aqua,
|
|
Green,
|
|
Lime,
|
|
Yellow,
|
|
Orange,
|
|
Red
|
|
}
|
|
} |