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
  • 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:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdateTag

      @NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class net.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:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • saveAdditional

      protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • getFireflies

      @NotNull public @NotNull List<DisplayLanternBlockEntity.Occupant> getFireflies()
    • addFirefly

      public void addFirefly(@NotNull @NotNull net.minecraft.world.level.LevelAccessor levelAccessor, @NotNull @NotNull FireflyBottle bottle, @NotNull @NotNull String name)
    • removeFirefly

      public void removeFirefly(@NotNull @NotNull DisplayLanternBlockEntity.Occupant firefly)
    • spawnFireflies

      public void spawnFireflies()
    • spawnFireflies

      public void spawnFireflies(@NotNull @NotNull net.minecraft.world.level.Level level)
    • getComparatorOutput

      public int getComparatorOutput()