# Index

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

## A

addAllPropertiesSubWhen(Consumer<BlockStateBuilder.When>) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.OrWhen
  Adds a multi-property subcase to this OrWhen; all properties added must match for the subcase to be true
addCondition(Property<T>, T, T...) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.When
  Mutably adds a blockstate property condition for one or more property values to this case
addDataProvider(GatherDataEvent, String, DynamicOps<JsonElement>, Map<ResourceLocation, SimpleModel>) - Static method in record class net.commoble.databuddy.datagen.SimpleModel
  Creates a DataProvider and adds the provided GatherDataEvent's datagenerator, generating in the assets/namespace/models/ folder
addDataProvider(GatherDataEvent, Map<ResourceLocation, BlockModelDefinition>) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Helper to add a dataprovider for blockstate jsons
addMultiPropertyVariant(Consumer<BlockStateBuilder.PropertyValueList>, BlockStateModel.Unbaked) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Variants
  Adds a multi-property variant to your blockstate json, e.g.
addNamedProvider(GatherDataEvent, PackOutput.Target, String, Codec<T>, Map<ResourceLocation, T>, String) - Static method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Registers a JsonDataProvider to the datagenerator using the provided GatherDataEvent
addOrSubWhen(Consumer<BlockStateBuilder.OrWhen>) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.OrWhen
  Adds an OrWhen sub-case to this OrWhen
addPropertyValue(Property<T>, T) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.PropertyValueList
  Adds a blockstate property value to this variant's state filter, e.g.
addProvider(GatherDataEvent, PackOutput.Target, String, Codec<T>, Map<ResourceLocation, T>) - Static method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Registers a JsonDataProvider to the datagenerator using the provided GatherDataEvent, using the folder name as the unique name of this provider.
addSinglePropertySubWhen(Property<T>, T, T...) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.OrWhen
  Adds a single-property subcase to this OrWhen
addTexture(String, ResourceLocation) - Method in record class net.commoble.databuddy.datagen.SimpleModel
  Chaining method for building a SimpleModel.
addVariant(Property<T>, T, BlockStateModel.Unbaked) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Variants
  Adds a single-property variant to your blockstate json., e.g.
apply(Map<ResourceLocation, FINE>, ResourceManager, ProfilerFiller) - Method in class net.commoble.databuddy.data.MergeableCodecDataManager
  Main-thread processing, runs after prepare concludes
apply(BlockStateModel.Unbaked) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Applies a model to all blockstates, e.g.
applyWhen(BlockStateModel.Unbaked, Property<T>, T, T...) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Applies a model to blockstates which have any specified value of the specified property, e.g.
applyWhenAll(BlockStateModel.Unbaked, Consumer<BlockStateBuilder.When>) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Applies a model to blockstates which match all property-values specified via the provided When builder, with results like:

        "when": {
          "lit": "false",
          "powered": "true"
        },
        "apply": {"model": "foo:bar"}

applyWhenOr(BlockStateModel.Unbaked, Consumer<BlockStateBuilder.OrWhen>) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Applies a model to blockstates which match any specified cases specified via the provided OrWhen builder

## B

BlockStateBuilder - Class in net.commoble.databuddy.datagen
  Alternative datageneration for blockstate jsons Use `BlockStateBuilder.singleVariant(net.minecraft.client.renderer.block.model.BlockStateModel.Unbaked)`, `BlockStateBuilder.variants(java.util.function.Consumer<net.commoble.databuddy.datagen.BlockStateBuilder.Variants>)`, or `BlockStateBuilder.multipart(java.util.function.Consumer<net.commoble.databuddy.datagen.BlockStateBuilder.Multipart>)` to build a BlockModelDefinition (the java representation of a blockstate json).
BlockStateBuilder.Multipart - Record Class in net.commoble.databuddy.datagen
  Multipart format for blockstate jsons.
BlockStateBuilder.OrWhen - Record Class in net.commoble.databuddy.datagen
  Component of Multipart definitions' 'when' blocks.
BlockStateBuilder.PropertyValueList - Record Class in net.commoble.databuddy.datagen
  Component of Variants definitions, representing one or more property-value entries, e.g.
BlockStateBuilder.Variants - Record Class in net.commoble.databuddy.datagen
  Represents a "variants" block in a blockstate json.
BlockStateBuilder.When - Record Class in net.commoble.databuddy.datagen
  Component of Multipart definitions representing a blockstate predicate.

## C

cases() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Returns the value of the `cases` record component.
cases() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.OrWhen
  Returns the value of the `cases` record component.
codec() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `codec` record component.
CODEC - Static variable in record class net.commoble.databuddy.datagen.SimpleModel
  codec
codecRegistry() - Method in record class net.commoble.databuddy.codec.RegistryDispatcher
  Returns the value of the `codecRegistry` record component.
compressMaps() - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
conditions() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.When
  Returns the value of the `conditions` record component.
ConfigHelper - Class in net.commoble.databuddy.config
  Helpers for creating configs and defining complex objects in configs
ConfigHelper.ConfigObject<T> - Class in net.commoble.databuddy.config
  A config-reload-sensitive wrapper around a config field for a complex object
ConfigHelper.TomlConfigOps - Class in net.commoble.databuddy.config
  DynamicOps for using `Codec`s to load objects from configs.
convertTo(DynamicOps<U>, Object) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
create(ResourceLocation) - Static method in record class net.commoble.databuddy.datagen.SimpleModel
  Creates a SimpleModel with specified parent and solid render type.
create(ResourceLocation, ResourceLocation) - Static method in record class net.commoble.databuddy.datagen.SimpleModel
  Creates a SimpleModel with specified parent and render type.
createBoolean(boolean) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
createList(Stream<Object>) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
createMap(Stream<Pair<Object, Object>>) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
createMap(Stream<Pair<T, T>>) - Method in class net.commoble.databuddy.codec.WriteFieldsFirstOps
createNumeric(Number) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
createString(String) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
createWithoutRenderType(ResourceLocation) - Static method in record class net.commoble.databuddy.datagen.SimpleModel
  Creates a SimpleModel with specified parent and no explicit render type.
custom(CustomBlockModelDefinition) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Creates a non-vanilla BlockModelDefinition
CUTOUT - Static variable in class net.commoble.databuddy.datagen.SimpleModel.RenderTypes
  Vanilla cutout render type, all-or-nothing transparency
CUTOUT_MIPPED - Static variable in class net.commoble.databuddy.datagen.SimpleModel.RenderTypes
  Vanilla cutout_mipped render type, all-or-nothing transparency and mipmapping

## D

data - Variable in class net.commoble.databuddy.data.MergeableCodecDataManager
  the loaded data
defineObject(ModConfigSpec.Builder, String, Codec<T>, T) - Static method in class net.commoble.databuddy.config.ConfigHelper
  Define a config value for a complex object.
defreg() - Method in record class net.commoble.databuddy.codec.RegistryDispatcher
  Returns the value of the `defreg` record component.
dispatchedCodec() - Method in record class net.commoble.databuddy.codec.RegistryDispatcher
  Returns the value of the `dispatchedCodec` record component.
dispatcherCodec() - Method in record class net.commoble.databuddy.codec.RegistryDispatcher
  Returns the value of the `dispatcherCodec` record component.

## E

empty() - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
equals(Object) - Method in record class net.commoble.databuddy.codec.RegistryDispatcher
  Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.OrWhen
  Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.PropertyValueList
  Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Variants
  Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.When
  Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.commoble.databuddy.datagen.SimpleModel
  Indicates whether some other object is "equal to" this one.

## F

folder() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `folder` record component.

## G

generator() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `generator` record component.
get() - Method in class net.commoble.databuddy.config.ConfigHelper.ConfigObject
getBooleanValue(Object) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
getData() - Method in class net.commoble.databuddy.data.MergeableCodecDataManager
getMapValues(Object) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
getName() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Gets the name of this data provider.
getNumberValue(Object) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
getStream(Object) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
getStringValue(Object) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps

## H

hashCode() - Method in record class net.commoble.databuddy.codec.RegistryDispatcher
  Returns a hash code value for this object.
hashCode() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Returns a hash code value for this object.
hashCode() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.OrWhen
  Returns a hash code value for this object.
hashCode() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.PropertyValueList
  Returns a hash code value for this object.
hashCode() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Variants
  Returns a hash code value for this object.
hashCode() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.When
  Returns a hash code value for this object.
hashCode() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns a hash code value for this object.
hashCode() - Method in record class net.commoble.databuddy.datagen.SimpleModel
  Returns a hash code value for this object.

## I

INSTANCE - Static variable in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
  instance

## J

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

## L

loadPlugins(Class<?>, Class<PLUGIN>, REGISTRY) - Static method in class net.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

makeDispatchForgeRegistry(ResourceLocation, Function<T, ? extends MapCodec<? extends T>>, Consumer<RegistryBuilder<MapCodec<? extends T>>>) - Static method in record class net.commoble.databuddy.codec.RegistryDispatcher
  Helper method for creating and registering a DeferredRegister for a registry of serializers.
mapBuilder() - Method in class net.commoble.databuddy.codec.WriteFieldsFirstOps
MergeableCodecDataManager<RAW,FINE> - Class in net.commoble.databuddy.data
  Generic data loader for Codec-parsable data.
MergeableCodecDataManager(String, Codec<RAW>, Function<List<RAW>, FINE>) - Constructor for class net.commoble.databuddy.data.MergeableCodecDataManager
  Initialize a data manager with the given folder name, codec, and merger
mergeToList(Object, Object) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
mergeToList(Object, List<Object>) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
mergeToMap(Object, Object, Object) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
model(ResourceLocation) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Returns new Unbaked BlockStateModel with no rotation, no uvlock.
model(ResourceLocation, Quadrant, Quadrant) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Returns new Unbaked BlockStateModel with specified rotation and no uvlock.
model(ResourceLocation, Quadrant, Quadrant, boolean) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Returns new Unbaked BlockStateModel with specified rotation and uvlock.
multipart(Consumer<BlockStateBuilder.Multipart>) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Builds and returns a BlockModelDefinition for a multipart blockstate json.
Multipart(List<BlockStateBuilder.WhenApply>) - Constructor for record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Creates an instance of a `Multipart` record class.

## N

net.commoble.databuddy.codec - package net.commoble.databuddy.codec
net.commoble.databuddy.config - package net.commoble.databuddy.config
net.commoble.databuddy.data - package net.commoble.databuddy.data
net.commoble.databuddy.datagen - package net.commoble.databuddy.datagen
net.commoble.databuddy.plugin - package net.commoble.databuddy.plugin

## O

objects() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `objects` record component.
of(DynamicOps<T>, String...) - Static method in class net.commoble.databuddy.codec.WriteFieldsFirstOps
OrWhen(List<Either<BlockStateBuilder.OrWhen, BlockStateBuilder.When>>) - Constructor for record class net.commoble.databuddy.datagen.BlockStateBuilder.OrWhen
  Creates an instance of a `OrWhen` record class.

## P

packOutput() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `packOutput` record component.
parent() - Method in record class net.commoble.databuddy.datagen.SimpleModel
  Returns the value of the `parent` record component.
PluginLoader - Class in net.commoble.databuddy.plugin
  Helper for providing annotation apis to other mods and load and construct their classes
PluginLoader() - Constructor for class net.commoble.databuddy.plugin.PluginLoader
prepare(ResourceManager, ProfilerFiller) - Method in class net.commoble.databuddy.data.MergeableCodecDataManager
  Off-thread processing (can include reading files from hard drive)
PropertyValueList(List<BlockStateBuilder.PropertyValue<?>>) - Constructor for record class net.commoble.databuddy.datagen.BlockStateBuilder.PropertyValueList
  Creates an instance of a `PropertyValueList` record class.
propertyValues() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.PropertyValueList
  Returns the value of the `propertyValues` record component.

## R

randomModels(Weighted<BlockStateModel.Unbaked>, Weighted<BlockStateModel.Unbaked>, Weighted<BlockStateModel.Unbaked>...) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Returns new Unbaked BlockStateModel for random selection from a list of two or more Weighted models (e.g. like how stone is).
register(String, ModConfig.Type, Function<ModConfigSpec.Builder, T>) - Static method in class net.commoble.databuddy.config.ConfigHelper
  Register a config using a default config filename for your mod.
register(String, ModConfig.Type, Function<ModConfigSpec.Builder, T>, String) - Static method in class net.commoble.databuddy.config.ConfigHelper
  Register a config using a custom filename.
registries() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `registries` record component.
RegistryDispatcher<T> - Record Class in net.commoble.databuddy.codec
  Helper for creating a deferred register and dispatch codec for a custom registry of serializer types.
RegistryDispatcher(Codec<MapCodec<? extends T>>, Codec<T>, DeferredRegister<MapCodec<? extends T>>, Registry<MapCodec<? extends T>>) - Constructor for record class net.commoble.databuddy.codec.RegistryDispatcher
  Creates an instance of a `RegistryDispatcher` record class.
remove(Object, String) - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
renderType() - Method in record class net.commoble.databuddy.datagen.SimpleModel
  Returns the value of the `renderType` record component.
RenderTypes() - Constructor for class net.commoble.databuddy.datagen.SimpleModel.RenderTypes
run(CachedOutput) - Method in record class net.commoble.databuddy.datagen.JsonDataProvider

## S

set(T) - Method in class net.commoble.databuddy.config.ConfigHelper.ConfigObject
  Sets the config field to a new value and saves the config
SimpleModel - Record Class in net.commoble.databuddy.datagen
  Represents a parented model file.
SimpleModel(ResourceLocation, Map<String, ResourceLocation>, Optional<ResourceLocation>) - Constructor for record class net.commoble.databuddy.datagen.SimpleModel
  Creates an instance of a `SimpleModel` record class.
SimpleModel.RenderTypes - Class in net.commoble.databuddy.datagen
  Vanilla render types used by the chunk mesh baker (as of forge 41.0.64 only these are supported in baked block models)
singleVariant(BlockStateModel.Unbaked) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Creates and returns a BlockModelDefinition for a variants-type blockstate json which assigns one model to all states.
SOLID - Static variable in class net.commoble.databuddy.datagen.SimpleModel.RenderTypes
  Vanilla solid render type, no transparency
subscribeAsSyncable(Function<Map<ResourceLocation, FINE>, PACKET>) - Method in class net.commoble.databuddy.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

target() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `target` record component.
textures() - Method in record class net.commoble.databuddy.datagen.SimpleModel
  Returns the value of the `textures` record component.
TomlConfigOps() - Constructor for class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
toString() - Method in record class net.commoble.databuddy.codec.RegistryDispatcher
  Returns a string representation of this record class.
toString() - Method in class net.commoble.databuddy.config.ConfigHelper.TomlConfigOps
toString() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Multipart
  Returns a string representation of this record class.
toString() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.OrWhen
  Returns a string representation of this record class.
toString() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.PropertyValueList
  Returns a string representation of this record class.
toString() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Variants
  Returns a string representation of this record class.
toString() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.When
  Returns a string representation of this record class.
toString() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns a string representation of this record class.
toString() - Method in record class net.commoble.databuddy.datagen.SimpleModel
  Returns a string representation of this record class.
TRANSLUCENT - Static variable in class net.commoble.databuddy.datagen.SimpleModel.RenderTypes
  Vanilla translucent render type, allows partial transparency
TRIPWIRE - Static variable in class net.commoble.databuddy.datagen.SimpleModel.RenderTypes
  Vanilla tripwire render type, similar to translucent but uses the tripwire shader
TYPE_FIRST_JSON_OPS - Static variable in class net.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)

## U

uniqueName() - Method in record class net.commoble.databuddy.datagen.JsonDataProvider
  Returns the value of the `uniqueName` record component.

## V

variants() - Method in record class net.commoble.databuddy.datagen.BlockStateBuilder.Variants
  Returns the value of the `variants` record component.
variants(Consumer<BlockStateBuilder.Variants>) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Builds and returns a BlockModelDefinition for a variants blockstate json.
Variants(Map<List<BlockStateBuilder.PropertyValue<?>>, BlockStateModel.Unbaked>) - Constructor for record class net.commoble.databuddy.datagen.BlockStateBuilder.Variants
  Creates an instance of a `Variants` record class.
variantsAndMultipart(Consumer<BlockStateBuilder.Variants>, Consumer<BlockStateBuilder.Multipart>) - Static method in class net.commoble.databuddy.datagen.BlockStateBuilder
  Builds and returns a BlockModelDefinition which has both variants and multipart

## W

When(Map<String, String>) - Constructor for record class net.commoble.databuddy.datagen.BlockStateBuilder.When
  Creates an instance of a `When` record class.
WriteFieldsFirstOps<T> - Class in net.commoble.databuddy.codec
  Delegating DynamicOps that, when serializing data, serializes specified fields in a given order before serializing any other fields.
WriteFieldsFirstOps(DynamicOps<T>, String...) - Constructor for class net.commoble.databuddy.codec.WriteFieldsFirstOps

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