CustomItemShape class final
A game's own shape: boxes of voxels, each filled from its first corner
to its second (inclusive) in a 0xRRGGBB colour, a later box painting over
an earlier one; held by the voxel hold as grip says, each voxel scale
metres. A flat piece is drawn in the XY plane, standing up +Y from hold.
- Implemented types
Constructors
Properties
-
boxes
→ List<
(IVec3, IVec3, int)> -
(from, to, colour), painted in order.
final
- grip → ItemGrip
-
How it is held.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hold → IVec3
-
The voxel it is held by: the model stands on the middle of its floor.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
Metres a voxel.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited