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 BlockState
previousState
private CompoundTag
previousEntityTag
private final BlockEntityType<?>
type
protected final Level
level
protected final BlockPos
worldPosition
protected final Boolean
remove
private BlockState
blockState
private final DataComponentMap
components
private final CompoundTag
customPersistentData
final Map<AttachmentType<?>, Object>
attachments
-
Constructor Summary
Constructors Constructor Description ShadowBugBlockEntity(BlockPos position, BlockState state)
-
Method Summary
Modifier and Type Method Description final BlockState
getPreviousState()
final Unit
setPreviousState(BlockState previousState)
final CompoundTag
getPreviousEntityTag()
final Unit
setPreviousEntityTag(CompoundTag previousEntityTag)
final Unit
setPrevious(BlockState state)
final Unit
setPreviousTag(CompoundTag tag)
final BlockState
getPreviousState()
final CompoundTag
getPreviousEntityTag()
Unit
loadAdditional(CompoundTag tag, HolderLookup.Provider registries)
Unit
saveAdditional(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, getExistingData, getExposedHolder, hasAttachments, hasData, serializeAttachments, validateAttachmentType
-
Methods inherited from class net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, 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
-
-
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)
-
-
-
-