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_324455_, long p_324396_, List<ItemStack> p_324515_, int p_324586_)
    • VaultServerData

      VaultServerData()
  • Method Details

    • setLastInsertFailTimestamp

      void setLastInsertFailTimestamp(long p_324469_)
    • getLastInsertFailTimestamp

      long getLastInsertFailTimestamp()
    • getRewardedPlayers

      Set<UUID> getRewardedPlayers()
    • hasRewardedPlayer

      boolean hasRewardedPlayer(Player p_324533_)
    • addToRewardedPlayers

      public void addToRewardedPlayers(Player p_323713_)
    • stateUpdatingResumesAt

      long stateUpdatingResumesAt()
    • pauseStateUpdatingUntil

      void pauseStateUpdatingUntil(long p_323478_)
    • getItemsToEject

      List<ItemStack> getItemsToEject()
    • markEjectionFinished

      void markEjectionFinished()
    • setItemsToEject

      void setItemsToEject(List<ItemStack> p_324402_)
    • getNextItemToEject

      ItemStack getNextItemToEject()
    • popNextItemToEject

      ItemStack popNextItemToEject()
    • set

      void set(VaultServerData p_323643_)
    • markChanged

      private void markChanged()
    • ejectionProgress

      public float ejectionProgress()