Class AbstractStructureMultiBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.nikdo53.tinymultiblocklib.blockentities.AbstractMultiBlockEntity
net.nikdo53.tinymultiblocklib.blockentities.AbstractStructureMultiBlockEntity
- All Implemented Interfaces:
IMultiBlockEntity,IStructureMultiBlockEntity
- Direct Known Subclasses:
SimpleStructureMultiBlockEntity
public class AbstractStructureMultiBlockEntity
extends AbstractMultiBlockEntity
implements IStructureMultiBlockEntity
-
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionAbstractStructureMultiBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockStatevoidload(net.minecraft.nbt.CompoundTag tag) protected voidsaveAdditional(net.minecraft.nbt.CompoundTag tag) voidsetOldBlockState(net.minecraft.world.level.block.state.BlockState blockState) Methods inherited from class net.nikdo53.tinymultiblocklib.blockentities.AbstractMultiBlockEntity
getFullBlockShapeCache, getOffset, getUpdatePacket, getUpdateTag, invalidateCaches, isPlaced, setFullBlockShapeCache, setOffset, setPlacedMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.nikdo53.tinymultiblocklib.blockentities.IMultiBlockEntity
getBlockEntity, getCenter, getFullBlockShapeCache, getOffset, getPreviewMode, invalidateCaches, isCenter, isPlaced, setCenter, setFullBlockShapeCache, setOffset, setPlaced, setPreviewMode
-
Constructor Details
-
AbstractStructureMultiBlockEntity
public AbstractStructureMultiBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getOldBlockState
public net.minecraft.world.level.block.state.BlockState getOldBlockState()- Specified by:
getOldBlockStatein interfaceIStructureMultiBlockEntity
-
setOldBlockState
public void setOldBlockState(net.minecraft.world.level.block.state.BlockState blockState) - Specified by:
setOldBlockStatein interfaceIStructureMultiBlockEntity
-
saveAdditional
protected void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classAbstractMultiBlockEntity
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classAbstractMultiBlockEntity
-