Interface IMultiBlockEntity
- All Known Implementing Classes:
AbstractMultiBlockEntity,TestMultiblockEntity
public interface IMultiBlockEntity
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.world.level.block.entity.BlockEntitynet.minecraft.core.BlockPosList<net.minecraft.core.BlockPos>voiddefault booleanisCenter()booleanisPlaced()True once the whole placing logic runs (to prevent updateShape from breaking it early)static booleanisPlaced(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos blockPos) voidsetCenter(net.minecraft.core.BlockPos pos) voidsetFullBlockShapeCache(List<net.minecraft.core.BlockPos> shapeCache) voidsetPlaced(boolean placed) static voidsetPlaced(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos blockPos, boolean placed) voidsetPreviewMode(PreviewMode mode)
-
Method Details
-
getCenter
net.minecraft.core.BlockPos getCenter() -
setCenter
void setCenter(net.minecraft.core.BlockPos pos) -
isPlaced
boolean isPlaced()True once the whole placing logic runs (to prevent updateShape from breaking it early) -
setPlaced
void setPlaced(boolean placed) -
getFullBlockShapeCache
List<net.minecraft.core.BlockPos> getFullBlockShapeCache() -
setFullBlockShapeCache
-
invalidateCaches
void invalidateCaches() -
getPreviewMode
PreviewMode getPreviewMode() -
setPreviewMode
-
setPlaced
static void setPlaced(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos blockPos, boolean placed) -
isPlaced
static boolean isPlaced(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos blockPos) -
isCenter
default boolean isCenter() -
getBlockEntity
default net.minecraft.world.level.block.entity.BlockEntity getBlockEntity()
-