Class ShadowBugBlockEntity
-
- All Implemented Interfaces:
-
net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
public final class ShadowBugBlockEntity extends BlockEntity
-
-
Field Summary
Fields Modifier and Type Field Description private BlockStatepreviousStateprivate CompoundTagpreviousEntityTagprivate final BlockEntityType<?>typeprotected final Levellevelprotected final BlockPosworldPositionprotected final Booleanremoveprivate BlockStateblockStateprivate final DataComponentMapcomponentsprivate final CompoundTagcustomPersistentDatafinal Map<AttachmentType<?>, Object>attachments
-
Constructor Summary
Constructors Constructor Description ShadowBugBlockEntity(BlockEntityType<ShadowBugBlockEntity> type, BlockPos position, BlockState state)
-
Method Summary
Modifier and Type Method Description final BlockStategetPreviousState()final UnitsetPreviousState(BlockState previousState)final CompoundTaggetPreviousEntityTag()final UnitsetPreviousEntityTag(CompoundTag previousEntityTag)final UnitsetPrevious(BlockState state)final UnitsetPreviousTag(CompoundTag tag)final BlockStategetPreviousState()final CompoundTaggetPreviousEntityTag()UnitloadAdditional(CompoundTag tag, HolderLookup.Provider registries)UnitsaveAdditional(CompoundTag tag, HolderLookup.Provider registries)-
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadWithComponents, onlyOpCanSetNbt, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveId, saveMetadata, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setComponents, setData, setLevel, setRemoved, triggerEvent, validateBlockState -
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getAttachmentMap, getData, getExistingDataOrNull, getExposedHolder, hasAttachments, hasData, serializeAttachments, validateAttachmentType -
Methods inherited from class net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData -
Methods inherited from class net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, self -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ShadowBugBlockEntity
ShadowBugBlockEntity(BlockEntityType<ShadowBugBlockEntity> type, BlockPos position, BlockState state)
-
-
Method Detail
-
getPreviousState
final BlockState getPreviousState()
-
setPreviousState
final Unit setPreviousState(BlockState previousState)
-
getPreviousEntityTag
final CompoundTag getPreviousEntityTag()
-
setPreviousEntityTag
final Unit setPreviousEntityTag(CompoundTag previousEntityTag)
-
setPrevious
final Unit setPrevious(BlockState state)
-
setPreviousTag
final Unit setPreviousTag(CompoundTag tag)
-
getPreviousState
final BlockState getPreviousState()
-
getPreviousEntityTag
final CompoundTag getPreviousEntityTag()
-
loadAdditional
Unit loadAdditional(CompoundTag tag, HolderLookup.Provider registries)
-
saveAdditional
Unit saveAdditional(CompoundTag tag, HolderLookup.Provider registries)
-
-
-
-