Class ItemModelBuilder
java.lang.Object
net.minecraftforge.client.model.generators.ModelFile
net.minecraftforge.client.model.generators.ModelBuilder<ItemModelBuilder>
net.minecraftforge.client.model.generators.ItemModelBuilder
Builder for item models, adds the ability to build overrides via
override()
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.ModelBuilder
ModelBuilder.ElementBuilder, ModelBuilder.FaceRotation, ModelBuilder.RootTransformsBuilder, ModelBuilder.TransformsBuilder
Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.ModelFile
ModelFile.ExistingModelFile, ModelFile.UncheckedModelFile
-
Field Summary
Fields inherited from class net.minecraftforge.client.model.generators.ModelBuilder
ambientOcclusion, customLoader, elements, existingFileHelper, guiLight, parent, renderType, textures, transforms
-
Constructor Summary
ConstructorDescriptionItemModelBuilder
(ResourceLocation outputLocation, ExistingFileHelper existingFileHelper) -
Method Summary
Methods inherited from class net.minecraftforge.client.model.generators.ModelBuilder
ao, customLoader, element, element, exists, getElementCount, guiLight, parent, renderType, renderType, rootTransforms, texture, texture, transforms
Methods inherited from class net.minecraftforge.client.model.generators.ModelFile
assertExistence, getLocation, getUncheckedLocation
-
Field Details
-
overrides
-
-
Constructor Details
-
ItemModelBuilder
-
-
Method Details
-
override
-
override
Get an existing override builder- Parameters:
index
- the index of the existing override builder- Returns:
- the override builder
- Throws:
IndexOutOfBoundsException
- if index is out of bounds
-
toJson
public com.google.gson.JsonObject toJson()- Overrides:
toJson
in classModelBuilder<ItemModelBuilder>
-