Class DisplayLanternBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.frozenblock.wilderwild.block.entity.DisplayLanternBlockEntity
public class DisplayLanternBlockEntity
extends net.minecraft.world.level.block.entity.BlockEntity
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleannet.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> static final intstatic final longFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionDisplayLanternBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirefly(@NotNull net.minecraft.world.level.LevelAccessor levelAccessor, @NotNull FireflyBottle bottle, @NotNull String name) voidapplyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput input) voidclientTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) voidcollectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder builder) int@NotNull List<DisplayLanternBlockEntity.Occupant> net.minecraft.world.item.ItemStackgetItem()net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket@NotNull net.minecraft.nbt.CompoundTaggetUpdateTag(net.minecraft.core.HolderLookup.Provider provider) booleaninvEmpty()voidloadAdditional(@NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) booleanvoidremoveComponentsFromTag(net.minecraft.nbt.CompoundTag compoundTag) voidremoveFirefly(@NotNull DisplayLanternBlockEntity.Occupant firefly) protected voidsaveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) voidserverTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) voidvoidspawnFireflies(@NotNull net.minecraft.world.level.Level level) voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent
-
Field Details
-
MAX_FIREFLY_AGE
public static final int MAX_FIREFLY_AGE- See Also:
-
NECTAR_SOUND_INTERVAL
public static final long NECTAR_SOUND_INTERVAL- See Also:
-
inventory
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> inventory -
age
public int age -
clientHanging
public boolean clientHanging
-
-
Constructor Details
-
DisplayLanternBlockEntity
public DisplayLanternBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
serverTick
public void serverTick(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
clientTick
public void clientTick(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
updateSync
public void updateSync() -
getUpdatePacket
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
@NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider provider) - Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
invEmpty
public boolean invEmpty() -
getItem
public net.minecraft.world.item.ItemStack getItem() -
noFireflies
public boolean noFireflies() -
loadAdditional
public void loadAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) - Overrides:
loadAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
applyImplicitComponents
public void applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput input) - Overrides:
applyImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
collectImplicitComponents
public void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder builder) - Overrides:
collectImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
removeComponentsFromTag
public void removeComponentsFromTag(net.minecraft.nbt.CompoundTag compoundTag) - Overrides:
removeComponentsFromTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
getFireflies
-
addFirefly
public void addFirefly(@NotNull @NotNull net.minecraft.world.level.LevelAccessor levelAccessor, @NotNull @NotNull FireflyBottle bottle, @NotNull @NotNull String name) -
removeFirefly
-
spawnFireflies
public void spawnFireflies() -
spawnFireflies
public void spawnFireflies(@NotNull @NotNull net.minecraft.world.level.Level level) -
getComparatorOutput
public int getComparatorOutput()
-