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

public interface IExpandingMultiblock extends IMultiBlock
  • 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:
      onPlaceHelper in interface IMultiBlock
    • 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: IMultiBlock
      Helper for Block.updateShape()

      Destroys the multiblock if canSurvive returns false

      Specified by:
      updateShapeHelper in interface IMultiBlock
    • 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)