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
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    boolean
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
     
    static final int
     
    static final long
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition
  • Constructor Summary

    Constructors
    Constructor
    Description
    DisplayLanternBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addFirefly(@NotNull net.minecraft.world.level.LevelAccessor levelAccessor, @NotNull FireflyBottle bottle, @NotNull String name)
     
    void
    applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput input)
     
    void
    clientTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos)
     
    void
    collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder builder)
     
    int
     
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    @NotNull net.minecraft.nbt.CompoundTag
    getUpdateTag(net.minecraft.core.HolderLookup.Provider provider)
     
    boolean
     
    void
    loadAdditional(@NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     
    boolean
     
    void
    removeComponentsFromTag(net.minecraft.nbt.CompoundTag compoundTag)
     
    void
     
    protected void
    saveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     
    void
    serverTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos)
     
    void
     
    void
    spawnFireflies(@NotNull net.minecraft.world.level.Level level)
     
    void
     

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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(net.minecraft.core.HolderLookup.Provider provider)
      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()
    • loadAdditional

      public void loadAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      loadAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • saveAdditional

      protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • applyImplicitComponents

      public void applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput input)
      Overrides:
      applyImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • collectImplicitComponents

      public void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder builder)
      Overrides:
      collectImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • removeComponentsFromTag

      public void removeComponentsFromTag(net.minecraft.nbt.CompoundTag compoundTag)
      Overrides:
      removeComponentsFromTag 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()