Class LootPoolConfiguration

java.lang.Object
dev.itsharshxd.zentrix.api.loot.LootPoolConfiguration

public final class LootPoolConfiguration extends Object
Mutable, detached editor snapshot of one loot pool.
  • Constructor Details

    • LootPoolConfiguration

      public LootPoolConfiguration(@NotNull @NotNull List<LootEntry> entries)
    • LootPoolConfiguration

      public LootPoolConfiguration(@NotNull @NotNull List<LootEntry> entries, @NotNull @NotNull Set<LootContainerType> eligibleContainerTypes)
  • Method Details

    • empty

      @NotNull public static @NotNull LootPoolConfiguration empty()
    • copy

      @NotNull public @NotNull LootPoolConfiguration copy()
    • getEntries

      @NotNull public @NotNull List<LootEntry> getEntries()
      Mutable editor list owned only by this detached configuration.
    • findEntry

      @Nullable public @Nullable LootEntry findEntry(@NotNull @NotNull String id)
    • getEligibleContainerTypes

      @NotNull public @NotNull EnumSet<LootContainerType> getEligibleContainerTypes()
    • setContainerTypeEligible

      public void setContainerTypeEligible(@NotNull @NotNull LootContainerType type, boolean eligible)
    • isContainerTypeEligible

      public boolean isContainerTypeEligible(@NotNull @NotNull LootContainerType type)