# Index

A B C D E F G I J L M N P R S T U V W
All Classes and Interfaces|All Packages|Constant Field Values

## A

ADD_TABLE - Static variable in class commoble.looot.Names
AddTableModifier - Class in commoble.looot.loot
AddTableModifier(LootItemCondition[], ResourceLocation) - Constructor for class commoble.looot.loot.AddTableModifier
ALL - Static variable in class commoble.looot.loot.NameEnchantedItem
apply(Map<ResourceLocation, FINE>, ResourceManager, ProfilerFiller) - Method in class commoble.looot.data.MergeableCodecDataManager
  Main-thread processing, runs after prepare concludes
apply(Map<ResourceLocation, List<String>>, ResourceManager, ProfilerFiller) - Method in class commoble.looot.data.NameListManager
apply(Map<ResourceLocation, Map<Enchantment, Integer>>, ResourceManager, ProfilerFiller) - Method in class commoble.looot.data.EnchantmentNameLimitManager
APPLY_FUNCTIONS_IF_TAGGED - Static variable in class commoble.looot.Names
ApplyFunctionsIfTagged - Class in commoble.looot.loot
  let's say we want to run one or more loot functions if a generated item belongs to an itemtag
  this can't be done by the vanilla loot conditions or functions, so it's a good candidate for making a new feature
  unfortunately, loot conditions can't observe the itemstack itself, so we have to write the condition as a loot function instead
ApplyFunctionsIfTagged(LootItemCondition[], ResourceLocation, LootItemFunction[]) - Constructor for class commoble.looot.loot.ApplyFunctionsIfTagged
ApplyFunctionsIfTagged.Serializer - Class in commoble.looot.loot

## B

bakeTranslationKeys() - Method in class commoble.looot.data.NameListManager

## C

chooseRandomThing(RandomSource, T...) - Static method in class commoble.looot.RandomHelper
codec() - Method in class commoble.looot.loot.AddTableModifier
CODEC - Static variable in class commoble.looot.data.EnchantmentNameLimits
CODEC - Static variable in class commoble.looot.data.NameList
CODEC - Static variable in class commoble.looot.loot.AddTableModifier
  Only used internally for registration, should not be referred to by anything else
commoble.looot - package commoble.looot
commoble.looot.data - package commoble.looot.data
commoble.looot.loot - package commoble.looot.loot

## D

data - Variable in class commoble.looot.data.MergeableCodecDataManager
  the loaded data
DEFAULT_MAJOR_STYLE - Static variable in class commoble.looot.loot.NameEnchantedItem
DEFAULT_MINOR_STYLE - Static variable in class commoble.looot.loot.NameEnchantedItem
deserialize(JsonObject, JsonDeserializationContext, LootItemCondition[]) - Method in class commoble.looot.loot.ApplyFunctionsIfTagged.Serializer
deserialize(JsonObject, JsonDeserializationContext, LootItemCondition[]) - Method in class commoble.looot.loot.NameEnchantedItem.Serializer
doApply(ObjectArrayList<ItemStack>, LootContext) - Method in class commoble.looot.loot.AddTableModifier

## E

EnchantmentNameLimitManager - Class in commoble.looot.data
EnchantmentNameLimitManager() - Constructor for class commoble.looot.data.EnchantmentNameLimitManager
enchantmentNameLimits - Variable in class commoble.looot.Looot
EnchantmentNameLimits - Class in commoble.looot.data
EnchantmentNameLimits(boolean, Map<Enchantment, Integer>) - Constructor for class commoble.looot.data.EnchantmentNameLimits
epicNameNouns - Variable in class commoble.looot.Looot
epicNamePrefixes - Variable in class commoble.looot.Looot
epicNameSuffixes - Variable in class commoble.looot.Looot

## F

FOLDER_NAME - Static variable in class commoble.looot.data.EnchantmentNameLimitManager
folderName() - Method in class commoble.looot.data.MergeableCodecDataManager
FUNCTIONS_KEY - Static variable in class commoble.looot.loot.ApplyFunctionsIfTagged

## G

getBuilder(ResourceLocation, LootItemFunction...) - Static method in class commoble.looot.loot.ApplyFunctionsIfTagged
getData() - Method in class commoble.looot.data.MergeableCodecDataManager
getEpicName(ItemStack, LootContext) - Static method in class commoble.looot.loot.NameEnchantedItem
getNameForEnchantment(boolean, Enchantment, int, RandomSource) - Static method in class commoble.looot.loot.NameEnchantedItem
getRandomThingFrom(RandomSource, List<T>) - Static method in class commoble.looot.RandomHelper
getRandomThingFromMultipleLists(RandomSource, List<? extends List<T>>) - Static method in class commoble.looot.RandomHelper
  Returns a random thing from a list of lists of things, weighted appropriate as if it were a single list of things, returns empty optional if all lists are empty
getRandomWords(ItemStack, RandomSource) - Static method in class commoble.looot.loot.NameEnchantedItem
getReplace() - Method in class commoble.looot.data.EnchantmentNameLimits
getReplace() - Method in class commoble.looot.data.NameList
getType() - Method in class commoble.looot.loot.ApplyFunctionsIfTagged
getType() - Method in class commoble.looot.loot.NameEnchantedItem
getValues() - Method in class commoble.looot.data.EnchantmentNameLimits
getValues() - Method in class commoble.looot.data.NameList

## I

ID - Static variable in class commoble.looot.loot.ApplyFunctionsIfTagged
ignoreEnchantments - Variable in class commoble.looot.loot.NameEnchantedItem
INSTANCE - Static variable in class commoble.looot.Looot

## J

JSON_EXTENSION - Static variable in class commoble.looot.data.MergeableCodecDataManager
  ".json"
JSON_EXTENSION_LENGTH - Static variable in class commoble.looot.data.MergeableCodecDataManager
  5

## L

limits - Variable in class commoble.looot.data.EnchantmentNameLimitManager
Looot - Class in commoble.looot
Looot() - Constructor for class commoble.looot.Looot

## M

majorStyle - Variable in class commoble.looot.loot.NameEnchantedItem
merge(List<NameList>) - Static method in class commoble.looot.data.NameList
MergeableCodecDataManager<RAW,FINE> - Class in commoble.looot.data
  Generic data loader for Codec-parsable data.
MergeableCodecDataManager(String, Codec<RAW>, Function<List<RAW>, FINE>) - Constructor for class commoble.looot.data.MergeableCodecDataManager
  Initialize a data manager with the given folder name, codec, and merger
minorStyle - Variable in class commoble.looot.loot.NameEnchantedItem
MODID - Static variable in class commoble.looot.Looot

## N

NAME_ENCHANTED_ITEM - Static variable in class commoble.looot.Names
NameEnchantedItem - Class in commoble.looot.loot
NameEnchantedItem(LootItemCondition[], Optional<Style>, Optional<Style>, boolean) - Constructor for class commoble.looot.loot.NameEnchantedItem
NameEnchantedItem.Serializer - Class in commoble.looot.loot
NameList - Class in commoble.looot.data
NameList(boolean, List<String>) - Constructor for class commoble.looot.data.NameList
NameListManager - Class in commoble.looot.data
NameListManager(String) - Constructor for class commoble.looot.data.NameListManager
Names - Class in commoble.looot

## P

prepare(ResourceManager, ProfilerFiller) - Method in class commoble.looot.data.MergeableCodecDataManager
  Off-thread processing (can include reading files from hard drive)

## R

RandomHelper - Class in commoble.looot
RandomHelper() - Constructor for class commoble.looot.RandomHelper
run(ItemStack, LootContext) - Method in class commoble.looot.loot.ApplyFunctionsIfTagged
run(ItemStack, LootContext) - Method in class commoble.looot.loot.NameEnchantedItem

## S

serialize(JsonObject, ApplyFunctionsIfTagged, JsonSerializationContext) - Method in class commoble.looot.loot.ApplyFunctionsIfTagged.Serializer
serialize(JsonObject, NameEnchantedItem, JsonSerializationContext) - Method in class commoble.looot.loot.NameEnchantedItem.Serializer
Serializer() - Constructor for class commoble.looot.loot.ApplyFunctionsIfTagged.Serializer
Serializer() - Constructor for class commoble.looot.loot.NameEnchantedItem.Serializer
STYLE_SERIALIZER - Static variable in class commoble.looot.loot.NameEnchantedItem.Serializer
subscribeAsSyncable(SimpleChannel, Function<Map<ResourceLocation, FINE>, PACKET>) - Method in class commoble.looot.data.MergeableCodecDataManager
  This should be called at most once, during construction of your mod Calling this method automatically subscribes a packet-sender to `OnDatapackSyncEvent`.

## T

table() - Method in class commoble.looot.loot.AddTableModifier
TAG_KEY - Static variable in class commoble.looot.loot.ApplyFunctionsIfTagged
translationKeys - Variable in class commoble.looot.data.NameListManager
  Where the strings loaded from the data are of the form e.g.
TYPE - Static variable in class commoble.looot.loot.ApplyFunctionsIfTagged
TYPE - Static variable in class commoble.looot.loot.NameEnchantedItem

## U

UNKNOWN_DESCRIPTOR - Static variable in class commoble.looot.loot.NameEnchantedItem
UNKNOWN_ENCHANTMENT - Static variable in class commoble.looot.loot.NameEnchantedItem

## V

VERY_UNKNOWN_ENCHANTMENT_PREFIX - Static variable in class commoble.looot.loot.NameEnchantedItem
VERY_UNKNOWN_ENCHANTMENT_SUFFIX - Static variable in class commoble.looot.loot.NameEnchantedItem

## W

wordMaps - Variable in class commoble.looot.Looot

A B C D E F G I J L M N P R S T U V W
All Classes and Interfaces|All Packages|Constant Field Values