Class StoneChestBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
net.minecraft.world.level.block.entity.ChestBlockEntity
net.frozenblock.wilderwild.block.entity.StoneChestBlockEntity
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.level.block.entity.LidBlockEntity, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable

public class StoneChestBlockEntity extends net.minecraft.world.level.block.entity.ChestBlockEntity
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
     
    int
     
    float
     
    static final float
     
    static final float
     
    static final int
     
    static final int
     
    static final double
     
    float
     
    float
     
    int
     
    protected long
     

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

    LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG, lootTable, lootTableSeed

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

    level, remove, worldPosition

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @NotNull ArrayList<net.minecraft.world.item.ItemStack>
     
    static void
    clientStoneTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull StoneChestBlockEntity stoneChest)
     
    int
     
    protected @NotNull net.minecraft.network.chat.Component
     
    float
    getOpenProgress(float delta)
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    @NotNull net.minecraft.nbt.CompoundTag
     
    void
    liftLid(float liftAmount, boolean ancient)
     
    void
    load(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    @NotNull ArrayList<net.minecraft.world.item.ItemStack>
     
    void
    onLidSlam(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable StoneChestBlockEntity otherStoneChest)
     
    static void
    playSound(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.sounds.SoundEvent soundEvent, @NotNull net.minecraft.sounds.SoundEvent waterloggedSoundEvent, float volume)
     
    protected void
    saveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    static void
    serverStoneTick(@NotNull net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull StoneChestBlockEntity stoneChest)
     
    void
    setLid(float liftAmount)
     
    void
    startOpen(@NotNull net.minecraft.world.entity.player.Player player)
     
    boolean
    stillValid(@NotNull net.minecraft.world.entity.player.Player player)
     
    void
    stopOpen(@NotNull net.minecraft.world.entity.player.Player player)
     
    void
    syncLidValuesAndUpdate(@Nullable StoneChestBlockEntity otherStoneChest)
     

    Methods inherited from class net.minecraft.world.level.block.entity.ChestBlockEntity

    createMenu, getContainerSize, getItems, getOpenCount, getOpenNess, lidAnimateTick, recheckOpen, setItems, signalOpenCount, swapContents, triggerEvent

    Methods inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity

    canOpen, clearContent, createMenu, getItem, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable

    Methods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntity

    canUnlock, getCustomName, getDisplayName, getName, setCustomName

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged

    Methods inherited from interface net.minecraft.world.Nameable

    hasCustomName
  • Field Details

    • LID_SLAM_INTERVAL

      public static final float LID_SLAM_INTERVAL
      See Also:
    • MAX_OPEN_PERCENTAGE

      public static final float MAX_OPEN_PERCENTAGE
      See Also:
    • MAX_TIME_OPEN

      public static final int MAX_TIME_OPEN
      See Also:
    • MAX_TIME_OPEN_ANCIENT

      public static final int MAX_TIME_OPEN_ANCIENT
      See Also:
    • MIN_PERCENTAGE_OF_TIME_OPEN

      public static final double MIN_PERCENTAGE_OF_TIME_OPEN
      See Also:
    • openProgress

      public float openProgress
    • prevOpenProgress

      public float prevOpenProgress
    • highestLidPoint

      public float highestLidPoint
    • stillLidTicks

      public int stillLidTicks
    • cooldownTicks

      public int cooldownTicks
    • closing

      public boolean closing
    • updateTime

      protected long updateTime
  • Constructor Details

    • StoneChestBlockEntity

      public StoneChestBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos blockPos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
  • Method Details

    • serverStoneTick

      public static void serverStoneTick(@NotNull @NotNull net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull StoneChestBlockEntity stoneChest)
    • clientStoneTick

      public static void clientStoneTick(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull StoneChestBlockEntity stoneChest)
    • playSound

      public static void playSound(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.sounds.SoundEvent soundEvent, @NotNull @NotNull net.minecraft.sounds.SoundEvent waterloggedSoundEvent, float volume)
    • load

      public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      load in class net.minecraft.world.level.block.entity.ChestBlockEntity
    • saveAdditional

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

      public float getOpenProgress(float delta)
    • liftLid

      public void liftLid(float liftAmount, boolean ancient)
    • setLid

      public void setLid(float liftAmount)
    • getComparatorOutput

      public int getComparatorOutput()
    • onLidSlam

      public void onLidSlam(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable StoneChestBlockEntity otherStoneChest)
    • stillValid

      public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in interface net.minecraft.world.Container
      Overrides:
      stillValid in class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
    • syncLidValuesAndUpdate

      public void syncLidValuesAndUpdate(@Nullable @Nullable StoneChestBlockEntity otherStoneChest)
    • 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
    • getDefaultName

      @NotNull protected @NotNull net.minecraft.network.chat.Component getDefaultName()
      Overrides:
      getDefaultName in class net.minecraft.world.level.block.entity.ChestBlockEntity
    • startOpen

      public void startOpen(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Specified by:
      startOpen in interface net.minecraft.world.Container
      Overrides:
      startOpen in class net.minecraft.world.level.block.entity.ChestBlockEntity
    • stopOpen

      public void stopOpen(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Specified by:
      stopOpen in interface net.minecraft.world.Container
      Overrides:
      stopOpen in class net.minecraft.world.level.block.entity.ChestBlockEntity
    • nonAncientItems

      @NotNull public @NotNull ArrayList<net.minecraft.world.item.ItemStack> nonAncientItems()
    • ancientItems

      @NotNull public @NotNull ArrayList<net.minecraft.world.item.ItemStack> ancientItems()