Package net.minecraft.world.level.block
Class MultifaceSpreader
java.lang.Object
net.minecraft.world.level.block.MultifaceSpreader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
static final record
static interface
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MultifaceSpreader.SpreadConfig
static final MultifaceSpreader.SpreadType[]
-
Constructor Summary
ConstructorDescriptionMultifaceSpreader
(MultifaceBlock p_221590_) MultifaceSpreader
(MultifaceSpreader.SpreadConfig p_221592_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSpreadInAnyDirection
(BlockState p_221602_, BlockGetter p_221603_, BlockPos p_221604_, Direction p_221605_) getSpreadFromFaceTowardDirection
(BlockState p_221613_, BlockGetter p_221614_, BlockPos p_221615_, Direction p_221616_, Direction p_221617_, MultifaceSpreader.SpreadPredicate p_221618_) long
spreadAll
(BlockState p_221658_, LevelAccessor p_221659_, BlockPos p_221660_, boolean p_221661_) private long
spreadFromFaceTowardAllDirections
(BlockState p_221645_, LevelAccessor p_221646_, BlockPos p_221647_, Direction p_221648_, boolean p_221649_) spreadFromFaceTowardDirection
(BlockState p_221638_, LevelAccessor p_221639_, BlockPos p_221640_, Direction p_221641_, Direction p_221642_, boolean p_221643_) spreadFromFaceTowardRandomDirection
(BlockState p_221631_, LevelAccessor p_221632_, BlockPos p_221633_, Direction p_221634_, RandomSource p_221635_, boolean p_221636_) spreadFromRandomFaceTowardRandomDirection
(BlockState p_221620_, LevelAccessor p_221621_, BlockPos p_221622_, RandomSource p_221623_) spreadToFace
(LevelAccessor p_221594_, MultifaceSpreader.SpreadPos p_221595_, boolean p_221596_)
-
Field Details
-
DEFAULT_SPREAD_ORDER
-
config
-
-
Constructor Details
-
MultifaceSpreader
-
MultifaceSpreader
-
-
Method Details
-
canSpreadInAnyDirection
public boolean canSpreadInAnyDirection(BlockState p_221602_, BlockGetter p_221603_, BlockPos p_221604_, Direction p_221605_) -
spreadFromRandomFaceTowardRandomDirection
public Optional<MultifaceSpreader.SpreadPos> spreadFromRandomFaceTowardRandomDirection(BlockState p_221620_, LevelAccessor p_221621_, BlockPos p_221622_, RandomSource p_221623_) -
spreadAll
public long spreadAll(BlockState p_221658_, LevelAccessor p_221659_, BlockPos p_221660_, boolean p_221661_) -
spreadFromFaceTowardRandomDirection
public Optional<MultifaceSpreader.SpreadPos> spreadFromFaceTowardRandomDirection(BlockState p_221631_, LevelAccessor p_221632_, BlockPos p_221633_, Direction p_221634_, RandomSource p_221635_, boolean p_221636_) -
spreadFromFaceTowardAllDirections
private long spreadFromFaceTowardAllDirections(BlockState p_221645_, LevelAccessor p_221646_, BlockPos p_221647_, Direction p_221648_, boolean p_221649_) -
spreadFromFaceTowardDirection
public Optional<MultifaceSpreader.SpreadPos> spreadFromFaceTowardDirection(BlockState p_221638_, LevelAccessor p_221639_, BlockPos p_221640_, Direction p_221641_, Direction p_221642_, boolean p_221643_) -
getSpreadFromFaceTowardDirection
public Optional<MultifaceSpreader.SpreadPos> getSpreadFromFaceTowardDirection(BlockState p_221613_, BlockGetter p_221614_, BlockPos p_221615_, Direction p_221616_, Direction p_221617_, MultifaceSpreader.SpreadPredicate p_221618_) -
spreadToFace
public Optional<MultifaceSpreader.SpreadPos> spreadToFace(LevelAccessor p_221594_, MultifaceSpreader.SpreadPos p_221595_, boolean p_221596_)
-