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.blockgetter.v2.RenderDataBlockEntity, net.minecraft.core.TypedInstance<net.minecraft.world.level.block.entity.BlockEntityType<?>>, net.minecraft.util.debug.DebugValueSource, IMultiBlockEntity, IStructureMultiBlockEntity
- Direct Known Subclasses:
SimpleStructureMultiBlockEntity
public class AbstractStructureMultiBlockEntity
extends AbstractMultiBlockEntity
implements IStructureMultiBlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
net.fabricmc.fabric.api.attachment.v1.AttachmentTarget.OnAttachedSet<A>Nested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource
net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T> -
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.world.level.storage.ValueInput input) voidpreRemoveSideEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidsetOldBlockState(net.minecraft.world.level.block.state.BlockState blockState) Methods inherited from class 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, getNameForReporting, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, problemPath, registerDebugValues, removeComponentsFromTag, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent, typeHolderMethods inherited from class 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, onAttachedSet, removeAttached, setAttachedMethods inherited from interface IMultiBlockEntity
getBlockEntity, getCenter, getFullBlockShapeCache, getOffset, getPreviewMode, invalidateCaches, isCenter, isPlaced, setCenter, setFullBlockShapeCache, setOffset, setPlaced, setPreviewModeMethods inherited from interface net.fabricmc.fabric.api.blockgetter.v2.RenderDataBlockEntity
getRenderDataMethods inherited from interface net.minecraft.core.TypedInstance
is, is, is, is, is, tags
-
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
-
preRemoveSideEffects
public void preRemoveSideEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Overrides:
preRemoveSideEffectsin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
protected void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classAbstractMultiBlockEntity
-
loadAdditional
protected void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classAbstractMultiBlockEntity
-