Struct BlockFiller
The flattened offset of a filler block from its origin block.
public readonly record struct BlockFiller : IEquatable<BlockFiller>
- Implements
- Inherited Members
Remarks
All three axes are signed values in the range -16..16.
Value is formed by combining the axes into one 15-bit value. The five least-significant bits are the X axis, the next five are the Z axis, and the last five are the Y axis. All other bits should be zero.
Constructors
BlockFiller(int)
The flattened offset of a filler block from its origin block.
public BlockFiller(int Value)
Parameters
ValueintThe raw offset value, in the range
0..32768.
Remarks
All three axes are signed values in the range -16..16.
Value is formed by combining the axes into one 15-bit value. The five least-significant bits are the X axis, the next five are the Z axis, and the last five are the Y axis. All other bits should be zero.
BlockFiller(int, int, int)
public BlockFiller(int x, int y, int z)
Parameters
Properties
Value
The raw offset value, in the range 0..32768.
public int Value { get; init; }
Property Value
X
X offset, in the range -16..16.
public int X { get; }
Property Value
Y
Y offset, in the range -16..16.
public int Y { get; }
Property Value
Z
Z offset, in the range -16..16.
public int Z { get; }
Property Value
Methods
Deconstruct(out int, out int, out int)
public void Deconstruct(out int x, out int y, out int z)
Parameters
Operators
implicit operator int(BlockFiller)
public static implicit operator int(BlockFiller filler)
Parameters
fillerBlockFiller
Returns
implicit operator (int, int, int)(BlockFiller)
public static implicit operator (int, int, int)(BlockFiller filler)
Parameters
fillerBlockFiller
Returns
implicit operator BlockFiller(int)
public static implicit operator BlockFiller(int value)
Parameters
valueint
Returns
implicit operator BlockFiller((int, int, int))
public static implicit operator BlockFiller((int, int, int) xyz)