Class VaultServerData

java.lang.Object
net.minecraft.world.level.block.entity.vault.VaultServerData

public class VaultServerData extends Object
  • Field Details

    • TAG_NAME

      static final String TAG_NAME
      See Also:
    • CODEC

      static com.mojang.serialization.Codec<VaultServerData> CODEC
    • MAX_REWARD_PLAYERS

      private static final int MAX_REWARD_PLAYERS
      See Also:
    • rewardedPlayers

      private final Set<UUID> rewardedPlayers
    • stateUpdatingResumesAt

      private long stateUpdatingResumesAt
    • itemsToEject

      private final List<ItemStack> itemsToEject
    • lastInsertFailTimestamp

      private long lastInsertFailTimestamp
    • totalEjectionsNeeded

      private int totalEjectionsNeeded
    • isDirty

      boolean isDirty
  • Constructor Details

    • VaultServerData

      VaultServerData(Set<UUID> p_334629_, long p_331265_, List<ItemStack> p_330511_, int p_333688_)
    • VaultServerData

      VaultServerData()
  • Method Details

    • setLastInsertFailTimestamp

      void setLastInsertFailTimestamp(long p_336284_)
    • getLastInsertFailTimestamp

      long getLastInsertFailTimestamp()
    • getRewardedPlayers

      Set<UUID> getRewardedPlayers()
    • hasRewardedPlayer

      boolean hasRewardedPlayer(Player p_336078_)
    • addToRewardedPlayers

      public void addToRewardedPlayers(Player p_332874_)
    • stateUpdatingResumesAt

      long stateUpdatingResumesAt()
    • pauseStateUpdatingUntil

      void pauseStateUpdatingUntil(long p_330777_)
    • getItemsToEject

      List<ItemStack> getItemsToEject()
    • markEjectionFinished

      void markEjectionFinished()
    • setItemsToEject

      void setItemsToEject(List<ItemStack> p_332570_)
    • getNextItemToEject

      ItemStack getNextItemToEject()
    • popNextItemToEject

      ItemStack popNextItemToEject()
    • set

      void set(VaultServerData p_329637_)
    • markChanged

      private void markChanged()
    • ejectionProgress

      public float ejectionProgress()