Class CelestialLanternBlockEntity
java.lang.Object
net.neoforged.neoforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
tech.anonymoushacker1279.immersiveweapons.blockentity.CelestialLanternBlockEntity
- All Implemented Interfaces:
net.minecraft.world.level.block.EntityBlock,net.neoforged.neoforge.common.capabilities.ICapabilityProvider,net.neoforged.neoforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.neoforged.neoforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.neoforged.neoforge.common.extensions.IBlockEntityExtension,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class CelestialLanternBlockEntity
extends net.minecraft.world.level.block.entity.BlockEntity
implements net.minecraft.world.level.block.EntityBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.common.capabilities.CapabilityProvider
net.neoforged.neoforge.common.capabilities.CapabilityProvider.AsField<B extends net.neoforged.neoforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionCelestialLanternBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) Constructor for CelestialLanternBlockEntity. -
Method Summary
Modifier and TypeMethodDescriptionvoidload(net.minecraft.nbt.CompoundTag tag) Load NBT data.@Nullable net.minecraft.world.level.block.entity.BlockEntitynewBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) Create a block entity for the block.protected voidsaveAdditional(net.minecraft.nbt.CompoundTag tag) Save NBT data.Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListener, getTickerMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface net.neoforged.neoforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
Constructor Details
-
CelestialLanternBlockEntity
public CelestialLanternBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) Constructor for CelestialLanternBlockEntity.
-
-
Method Details
-
newBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) Create a block entity for the block.- Specified by:
newBlockEntityin interfacenet.minecraft.world.level.block.EntityBlock- Parameters:
blockPos- theBlockPosthe block is atblockState- theBlockStateof the block- Returns:
- BlockEntity
-
saveAdditional
protected void saveAdditional(net.minecraft.nbt.CompoundTag tag) Save NBT data.- Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity- Parameters:
tag- theCompoundNBTto save
-
load
public void load(net.minecraft.nbt.CompoundTag tag) Load NBT data.- Overrides:
loadin classnet.minecraft.world.level.block.entity.BlockEntity- Parameters:
tag- theCompoundTagto load
-