Package net.fabricmc.fabric.api.loot.v2
Enum Class LootTableSource
- All Implemented Interfaces:
- Serializable,- Comparable<LootTableSource>,- Constable
Deprecated.
Describes where a loot table has been loaded from.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionDeprecated.A loot table loaded from an external data pack.Deprecated.A loot table loaded from mods' bundled resources.Deprecated.A loot table created inLootTableEvents.REPLACE.Deprecated.A loot table loaded from the default data pack.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDeprecated.Returns whether this loot table source is builtin and bundled in the vanilla or mod resources.static LootTableSourceDeprecated.Returns the enum constant of this class with the specified name.static LootTableSource[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
VANILLADeprecated.A loot table loaded from the default data pack.
- 
MODDeprecated.A loot table loaded from mods' bundled resources.This includes the additional builtin data packs registered by mods with Fabric Resource Loader. 
- 
DATA_PACKDeprecated.A loot table loaded from an external data pack.
- 
REPLACEDDeprecated.A loot table created inLootTableEvents.REPLACE.
 
- 
- 
Method Details- 
valuesDeprecated.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
 
- 
valueOfDeprecated.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
 
- 
isBuiltinpublic boolean isBuiltin()Deprecated.Returns whether this loot table source is builtin and bundled in the vanilla or mod resources.- Returns:
- trueif builtin,- falseotherwise
 
 
- 
LootTableSourceinstead.