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:
net.fabricmc.fabric.api.attachment.v1.AttachmentTarget,net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity,IMultiBlockEntity,IStructureMultiBlockEntity
- Direct Known Subclasses:
SimpleStructureMultiBlockEntity
public class AbstractStructureMultiBlockEntity
extends AbstractMultiBlockEntity
implements IStructureMultiBlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
NBT_ATTACHMENT_KEY -
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.BlockStateprotected voidloadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries) protected voidsaveAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries) 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, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, removeAttached, setAttachedMethods inherited from interface net.nikdo53.tinymultiblocklib.blockentities.IMultiBlockEntity
getBlockEntity, getCenter, getFullBlockShapeCache, getOffset, getPreviewMode, invalidateCaches, isCenter, isPlaced, setCenter, setFullBlockShapeCache, setOffset, setPlaced, setPreviewModeMethods inherited from interface net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity
getRenderData
-
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, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
saveAdditionalin classAbstractMultiBlockEntity
-
loadAdditional
protected void loadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
loadAdditionalin classAbstractMultiBlockEntity
-