Package net.minecraft.world.level.block
Class MultifaceSpreader.DefaultSpreaderConfig
java.lang.Object
net.minecraft.world.level.block.MultifaceSpreader.DefaultSpreaderConfig
- All Implemented Interfaces:
MultifaceSpreader.SpreadConfig
- Direct Known Subclasses:
SculkVeinBlock.SculkVeinSpreaderConfig
- Enclosing class:
- MultifaceSpreader
public static class MultifaceSpreader.DefaultSpreaderConfig
extends Object
implements MultifaceSpreader.SpreadConfig
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSpreadInto
(BlockGetter p_221685_, BlockPos p_221686_, MultifaceSpreader.SpreadPos p_221687_) getStateForPlacement
(BlockState p_221694_, BlockGetter p_221695_, BlockPos p_221696_, Direction p_221697_) protected boolean
stateCanBeReplaced
(BlockGetter p_221688_, BlockPos p_221689_, BlockPos p_221690_, Direction p_221691_, BlockState p_221692_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.block.MultifaceSpreader.SpreadConfig
canSpreadFrom, getSpreadTypes, hasFace, isOtherBlockValidAsSource, placeBlock
-
Field Details
-
block
-
-
Constructor Details
-
DefaultSpreaderConfig
-
-
Method Details
-
getStateForPlacement
@Nullable public BlockState getStateForPlacement(BlockState p_221694_, BlockGetter p_221695_, BlockPos p_221696_, Direction p_221697_) - Specified by:
getStateForPlacement
in interfaceMultifaceSpreader.SpreadConfig
-
stateCanBeReplaced
protected boolean stateCanBeReplaced(BlockGetter p_221688_, BlockPos p_221689_, BlockPos p_221690_, Direction p_221691_, BlockState p_221692_) -
canSpreadInto
public boolean canSpreadInto(BlockGetter p_221685_, BlockPos p_221686_, MultifaceSpreader.SpreadPos p_221687_) - Specified by:
canSpreadInto
in interfaceMultifaceSpreader.SpreadConfig
-