Package baritone.api.schematic.mask
Interface StaticMask
- All Superinterfaces:
Mask
- All Known Implementing Classes:
BinaryOperatorMask.Static,CylinderMask,NotMask.Static,SphereMask
A mask that is context-free. In other words, it doesn't require the current block state to determine if a relative
position is a part of the mask.
- Author:
- Brady
-
Method Summary
Modifier and TypeMethodDescriptiondefault StaticMaskcompute()Returns a pre-computed mask usingthisfunction, with the specified size parameters.default StaticMaskintersection(StaticMask other) default StaticMasknot()booleanpartOfMask(int x, int y, int z) Determines if a given relative coordinate is included in this mask, without the need for the current block state.default booleanpartOfMask(int x, int y, int z, net.minecraft.world.level.block.state.BlockState currentState) Implements the parentpartOfMask functionby calling the static function provided in this functional interface without needing theBlockStateargument.default StaticMaskunion(StaticMask other) default StaticMaskxor(StaticMask other)
-
Method Details
-
partOfMask
Determines if a given relative coordinate is included in this mask, without the need for the current block state.- Parameters:
x- The relative x position of the blocky- The relative y position of the blockz- The relative z position of the block- Returns:
- Whether the given position is included in this mask
-
partOfMask
default boolean partOfMask(int x, int y, int z, net.minecraft.world.level.block.state.BlockState currentState) Implements the parentpartOfMask functionby calling the static function provided in this functional interface without needing theBlockStateargument. Thisdefaultimplementation should NOT be overriden.- Specified by:
partOfMaskin interfaceMask- Parameters:
x- The relative x position of the blocky- The relative y position of the blockz- The relative z position of the blockcurrentState- The current state of that block in the world, may benull- Returns:
- Whether the given position is included in this mask
-
not
-
union
-
intersection
-
xor
-
compute
Returns a pre-computed mask usingthisfunction, with the specified size parameters.
-