Interface IMultiBlockCore
- All Known Subinterfaces:
IModularMultiBlockCore
- All Known Implementing Classes:
MultiBlockCoreEntity
public interface IMultiBlockCore
The core of a multiblock structure, tracks the positions of all the components in the structure.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddestroyMultiblock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) ArrayList<net.minecraft.core.BlockPos> default booleandefault voidsetupMultiblock(net.minecraft.core.BlockPos pos)
-
Method Details
-
getComponentPositions
ArrayList<net.minecraft.core.BlockPos> getComponentPositions() -
getStructure
- Returns:
- The multiblock structure created upon placement. Return null to disable.
-
setupMultiblock
default void setupMultiblock(net.minecraft.core.BlockPos pos) -
isModular
default boolean isModular() -
destroyMultiblock
default void destroyMultiblock(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
-