Interface IExpandingMultiblock
- All Superinterfaces:
net.minecraft.world.level.block.EntityBlock, IMBStateSharer, IMultiBlock
- All Known Subinterfaces:
IMovableMultiblock
- All Known Implementing Classes:
AbstractMultiBlock, AbstractStructureMultiBlock, DiamondStructureBlock, SimpleMultiBlock, TestBlock
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcancelChangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) default booleancanChangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) default voidchangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) default booleanhasShapeChanged(net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) default voidonPlaceHelper(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) default voidpostChangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) default booleantryChangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, boolean willChangeShape) default net.minecraft.world.level.block.state.BlockStateupdateShapeHelper(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.block.state.BlockState neighborState, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos neighborPos) Helper for Block.updateShape()Methods inherited from interface net.minecraft.world.level.block.EntityBlock
getListener, getTicker, newBlockEntityMethods inherited from interface IMBStateSharer
createSharedBlockStates, getSharedStateProperties, getSharedStatePropertiesBuilder, shareBlockStatesMethods inherited from interface IMultiBlock
allBlocksPresent, canPlace, canReplaceBlock, canSurviveHelper, destroy, entityUnobstructed, extraSurviveRequirements, getDirection, getDirectionProperty, getFullBlockShape, getFullBlockShapeNoCache, getIsolatedBlocks, getStateForEachBlock, getStateForPlacementHelper, getStateForPlacementHelper, makeFullBlockShape, place, prepareForPlace, preventCreativeDrops, voxelShapeHelper, voxelShapeHelper, voxelShapeHelper
-
Method Details
-
onPlaceHelper
default void onPlaceHelper(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) - Specified by:
onPlaceHelperin interfaceIMultiBlock
-
tryChangeShape
default boolean tryChangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, boolean willChangeShape) -
updateShapeHelper
default net.minecraft.world.level.block.state.BlockState updateShapeHelper(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.block.state.BlockState neighborState, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos neighborPos) Description copied from interface:IMultiBlockHelper for Block.updateShape()Destroys the multiblock if canSurvive returns false
- Specified by:
updateShapeHelperin interfaceIMultiBlock
-
hasShapeChanged
default boolean hasShapeChanged(net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) -
changeShape
default void changeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) -
canChangeShape
default boolean canChangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
postChangeShape
default void postChangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState) -
cancelChangeShape
default void cancelChangeShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState)
-