Enum Class LootType

java.lang.Object
java.lang.Enum<LootType>
net.darkhax.simplelootviewer.common.impl.data.LootType
All Implemented Interfaces:
Serializable, Comparable<LootType>, Constable

public enum LootType extends Enum<LootType>
The different categories of loot tables handled by this mod.
  • Enum Constant Details

    • BLOCK

      public static final LootType BLOCK
    • ENTITY

      public static final LootType ENTITY
    • LOOT_CHEST

      public static final LootType LOOT_CHEST
    • FISHING

      public static final LootType FISHING
    • HERO

      public static final LootType HERO
    • ARCHAEOLOGY

      public static final LootType ARCHAEOLOGY
    • DISPENSER

      public static final LootType DISPENSER
    • MISC

      public static final LootType MISC
  • Field Details

    • id

      public final net.minecraft.resources.ResourceLocation id
    • matcher

      public final Predicate<String> matcher
    • icon

      public final net.darkhax.bookshelf.common.api.function.CachedSupplier<net.minecraft.world.level.ItemLike> icon
    • configGetter

      public final Function<Config,CategoryConfig> configGetter
  • Method Details

    • values

      public static LootType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LootType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isEnabled

      public boolean isEnabled()
    • determineType

      public static LootType determineType(net.minecraft.resources.ResourceLocation tableId)