# Index

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

## A

apply(Map<ResourceLocation, JsonElement>, ResourceManager, ProfilerFiller) - Method in class commoble.databuddy.data.CodecJsonDataManager
apply(Map<ResourceLocation, FINE>, ResourceManager, ProfilerFiller) - Method in class commoble.databuddy.data.MergeableCodecDataManager
  Main-thread processing, runs after prepare concludes
apply(ListTag, int) - Method in interface commoble.databuddy.nbt.NBTListCodec.ListReader
  Deprecated.

## B

builder() - Method in record class commoble.databuddy.config.ConfigHelper
  Returns the value of the `builder` record component.
BYTE - Static variable in class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.

## C

codec() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `codec` record component.
CodecJsonDataManager<T> - Class in commoble.databuddy.data
  Codec-based data manager for loading data.
CodecJsonDataManager(String, Codec<T>, Logger) - Constructor for class commoble.databuddy.data.CodecJsonDataManager
  Creates a data manager with a standard gson parser
CodecJsonDataManager(String, Codec<T>, Logger, Gson) - Constructor for class commoble.databuddy.data.CodecJsonDataManager
  As above but with a custom GSON
commoble.databuddy.codec - package commoble.databuddy.codec
commoble.databuddy.config - package commoble.databuddy.config
commoble.databuddy.data - package commoble.databuddy.data
commoble.databuddy.datagen - package commoble.databuddy.datagen
commoble.databuddy.nbt - package commoble.databuddy.nbt
commoble.databuddy.plugin - package commoble.databuddy.plugin
COMPOUND - Static variable in class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.
compressMaps() - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
ConfigHelper - Record Class in commoble.databuddy.config
  Helper for creating configs and defining complex objects in configs
ConfigHelper(ForgeConfigSpec.Builder) - Constructor for record class commoble.databuddy.config.ConfigHelper
  Creates an instance of a `ConfigHelper` record class.
ConfigHelper.ConfigObject<T> - Class in commoble.databuddy.config
  A config-reload-sensitive wrapper around a config field for a complex object
ConfigHelper.TomlConfigOps - Class in commoble.databuddy.config
convertTo(DynamicOps<U>, Object) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
createBoolean(boolean) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
createList(Stream<Object>) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
createMap(Stream<Pair<Object, Object>>) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
createMap(Stream<Pair<T, T>>) - Method in class commoble.databuddy.codec.WriteFieldsFirstOps
createNumeric(Number) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
createString(String) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps

## D

data - Variable in class commoble.databuddy.data.CodecJsonDataManager
  The raw data that we parsed from json last time resources were reloaded
data - Variable in class commoble.databuddy.data.MergeableCodecDataManager
  Deprecated.
  prefer using the getter, will be made protected later
decode(DynamicOps<T>, MapLike<T>) - Method in class commoble.databuddy.codec.NullableFieldCodec
defineObject(String, Codec<T>, T) - Method in record class commoble.databuddy.config.ConfigHelper
  Deprecated, for removal: This API element is subject to removal in a future version.
  Use defineObject(Builder, String, Codec, T)
defineObject(ForgeConfigSpec.Builder, String, Codec<T>, T) - Static method in record class commoble.databuddy.config.ConfigHelper
  Define a config value for a complex object.
DOUBLE - Static variable in class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.

## E

empty() - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
equals(Object) - Method in record class commoble.databuddy.config.ConfigHelper
  Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Indicates whether some other object is "equal to" this one.

## F

FLOAT - Static variable in class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.
folder() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `folder` record component.

## G

generator() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `generator` record component.
get() - Method in class commoble.databuddy.config.ConfigHelper.ConfigObject
getBooleanValue(Object) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
getData() - Method in class commoble.databuddy.data.CodecJsonDataManager
getData() - Method in class commoble.databuddy.data.MergeableCodecDataManager
getData(ResourceLocation) - Method in class commoble.databuddy.data.CodecJsonDataManager
  Deprecated, for removal: This API element is subject to removal in a future version.
  Prefer using the other getData to get the data entries
getMapValues(Object) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
getName() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Gets the name of this data provider.
getNumberValue(Object) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
getStream(Object) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
getStringValue(Object) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
gson() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `gson` record component.

## H

hashCode() - Method in record class commoble.databuddy.config.ConfigHelper
  Returns a hash code value for this object.
hashCode() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Returns a hash code value for this object.

## I

INSTANCE - Static variable in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
INTEGER - Static variable in class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.

## J

JSON_EXTENSION - Static variable in class commoble.databuddy.data.MergeableCodecDataManager
JSON_EXTENSION_LENGTH - Static variable in class commoble.databuddy.data.MergeableCodecDataManager
JsonDataProvider<T> - Record Class in commoble.databuddy.datagen
  Generic data provider that uses DataFixerUpper Codecs to generate jsons from java objects.
JsonDataProvider(Gson, DataGenerator, PackType, String, Codec<T>, Map<ResourceLocation, T>) - Constructor for record class commoble.databuddy.datagen.JsonDataProvider
  Creates an instance of a `JsonDataProvider` record class.

## L

LIST - Static variable in class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.
ListTagType(int, NBTListCodec.ListReader<RAW>, Function<RAW, Tag>) - Constructor for class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.
loadPlugins(Class<?>, Class<PLUGIN>, REGISTRY) - Static method in class commoble.databuddy.plugin.PluginLoader
  Gathers all classes that implement the given interface and are annotated with the given annotation, attempts to make one instance of each of these classes, and registers them to some plugin-registering object.

## M

makeDefaultableField(String, Codec<VALUE>, VALUE) - Static method in class commoble.databuddy.codec.NullableFieldCodec
  As with makeOptional field, but decodes values directly to the given type instead of wrapping in an optional.
makeOptionalField(String, Codec<VALUE>) - Static method in class commoble.databuddy.codec.NullableFieldCodec
  Creates a field codec useable in RecordCodecBuilder for a field that permits absent or null values.
mapBuilder() - Method in class commoble.databuddy.codec.WriteFieldsFirstOps
MergeableCodecDataManager<RAW,FINE> - Class in commoble.databuddy.data
  Generic data loader for Codec-parsable data.
MergeableCodecDataManager(String, Logger, Codec<RAW>, Function<List<RAW>, FINE>) - Constructor for class commoble.databuddy.data.MergeableCodecDataManager
  Initialize a data manager with the given folder name, codec, and merger
MergeableCodecDataManager(String, Logger, Codec<RAW>, Function<List<RAW>, FINE>, Gson) - Constructor for class commoble.databuddy.data.MergeableCodecDataManager
  Initialize a data manager with the given folder name, codec, and merger, as well as a user-defined GSON instance.
mergeToList(Object, Object) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
mergeToMap(Object, Object, Object) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps

## N

NBTListCodec<ENTRY,RAW> - Class in commoble.databuddy.nbt
  Deprecated.
  Consider using mojang codecs and Codec::listOf
NBTListCodec(String, NBTListCodec.ListTagType<RAW>, Function<ENTRY, RAW>, Function<RAW, ENTRY>) - Constructor for class commoble.databuddy.nbt.NBTListCodec
  Deprecated.
NBTListCodec.ListReader<T> - Interface in commoble.databuddy.nbt
  Deprecated.
  Represents a function that takes a list NBT and an index and returns the object in the list at that index.
NBTListCodec.ListTagType<RAW> - Class in commoble.databuddy.nbt
  Deprecated.
NBTMapCodec<KEY,VALUE> - Class in commoble.databuddy.nbt
  Deprecated.
  prefer using Codecs to read and write NBT where possible
NBTMapCodec(String, BiConsumer<CompoundTag, KEY>, Function<CompoundTag, KEY>, BiConsumer<CompoundTag, VALUE>, Function<CompoundTag, VALUE>) - Constructor for class commoble.databuddy.nbt.NBTMapCodec
  Deprecated.
NullableFieldCodec<VALUE> - Class in commoble.databuddy.codec
  Similar to OptionalFieldCodec, but *only* permits absent values.
NullableFieldCodec(String, Codec<VALUE>) - Constructor for class commoble.databuddy.codec.NullableFieldCodec

## O

objects() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `objects` record component.
of(DynamicOps<T>, String...) - Static method in class commoble.databuddy.codec.WriteFieldsFirstOps

## P

PluginLoader - Class in commoble.databuddy.plugin
PluginLoader() - Constructor for class commoble.databuddy.plugin.PluginLoader
prepare(ResourceManager, ProfilerFiller) - Method in class commoble.databuddy.data.MergeableCodecDataManager
  Off-thread processing (can include reading files from hard drive)

## R

read(CompoundTag) - Method in class commoble.databuddy.nbt.NBTListCodec
  Deprecated.
  Reconstructs and returns a List<ENTRY> from a CompoundTag If the nbt used was given by this.write(list), the list returned will be a reconstruction of the original List
read(CompoundTag) - Method in class commoble.databuddy.nbt.NBTMapCodec
  Deprecated.
  Reconstructs and returns a Map<KEY,VALUE> from a CompoundTag If the nbt used was given by this.write(map), the map returned will be a reconstruction of the original Map
register(ModConfig.Type, BiFunction<ForgeConfigSpec.Builder, ConfigHelper, T>) - Static method in record class commoble.databuddy.config.ConfigHelper
  Deprecated, for removal: This API element is subject to removal in a future version.
  use the register method that takes a Function
register(ModConfig.Type, BiFunction<ForgeConfigSpec.Builder, ConfigHelper, T>, String) - Static method in record class commoble.databuddy.config.ConfigHelper
  Deprecated, for removal: This API element is subject to removal in a future version.
  use the register method that takes a Function
register(ModConfig.Type, Function<ForgeConfigSpec.Builder, T>) - Static method in record class commoble.databuddy.config.ConfigHelper
  Register a config using a default config filename for your mod.
register(ModConfig.Type, Function<ForgeConfigSpec.Builder, T>, String) - Static method in record class commoble.databuddy.config.ConfigHelper
  Register a config using a custom filename.
remove(Object, String) - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
resourceType() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `resourceType` record component.
run(HashCache) - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Takes all the objects declared by #addObject calls and writes them to json.

## S

SHORT - Static variable in class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.
STANDARD_GSON - Static variable in class commoble.databuddy.data.MergeableCodecDataManager
STRING - Static variable in class commoble.databuddy.nbt.NBTListCodec.ListTagType
  Deprecated.
subscribeAsSyncable(SimpleChannel, Function<Map<ResourceLocation, FINE>, PACKET>) - Method in class commoble.databuddy.data.MergeableCodecDataManager
  This should be called at most once, during construction of your mod (static init of your main mod class is fine) (FMLCommonSetupEvent *may* work as well) Calling this method automatically subscribes a packet-sender to `OnDatapackSyncEvent`.
subscribeAsSyncable(SimpleChannel, Function<Map<ResourceLocation, T>, PACKET>) - Method in class commoble.databuddy.data.CodecJsonDataManager
  This should be called at most once, during construction of your mod (static init of your main mod class is fine) (FMLCommonSetupEvent *may* work as well) Calling this method automatically subscribes a packet-sender to `OnDatapackSyncEvent`.

## T

TomlConfigOps() - Constructor for class commoble.databuddy.config.ConfigHelper.TomlConfigOps
toString() - Method in class commoble.databuddy.config.ConfigHelper.TomlConfigOps
toString() - Method in record class commoble.databuddy.config.ConfigHelper
  Returns a string representation of this record class.
toString() - Method in record class commoble.databuddy.datagen.JsonDataProvider
  Returns a string representation of this record class.
TYPE_FIRST_JSON_OPS - Static variable in class commoble.databuddy.codec.WriteFieldsFirstOps
  JsonOps that writes the "type" field first when serializing records.
  Helpful when serializing type-dispatched json objects.
  (type field goes at the top instead of the bottom, making the json easier to read)

## W

write(List<ENTRY>, CompoundTag) - Method in class commoble.databuddy.nbt.NBTListCodec
  Deprecated.
  Given a list and a CompoundTag,writes the contents of that list into the NBT The same CompoundTag can be given to this.read to retrieve that map
write(Map<KEY, VALUE>, CompoundTag) - Method in class commoble.databuddy.nbt.NBTMapCodec
  Deprecated.
  Given a map and a CompoundTag, writes the map into the NBT The same CompoundTag can be given to this.read to retrieve that map
WriteFieldsFirstOps<T> - Class in commoble.databuddy.codec
  Delegating DynamicOps that, when serializing data, serializes specified fields in a given order before serializing any other fields.
  This may be helpful when writing human-readable data, such as json files.
WriteFieldsFirstOps(DynamicOps<T>, String...) - Constructor for class commoble.databuddy.codec.WriteFieldsFirstOps

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