Byte

Tag with a signed byte, usually used to store small values like the progress of an action or the type of an entity. An unsigned version of the tag can be obtained doing a cast to ubyte. <a href="#ByteArray">Byte Array</a> is a tag with an array of unsigned bytes.

alias Byte = SimpleTag!(byte, NBT_TYPE.BYTE)

Examples

assert(cast(ubyte)(new Byte(-1)) == 255);

Meta