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 Classes -
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) voidclientTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) int@NotNull List<DisplayLanternBlockEntity.Occupant> net.minecraft.world.item.ItemStackgetItem()net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket@NotNull net.minecraft.nbt.CompoundTagbooleaninvEmpty()voidload(@NotNull net.minecraft.nbt.CompoundTag tag) booleanvoidremoveFirefly(@NotNull DisplayLanternBlockEntity.Occupant firefly) protected voidsaveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag) 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, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, 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()- 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() -
load
public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin 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()
-