Class ItemModelBuilder
- java.lang.Object
-
- net.minecraftforge.client.model.generators.ModelFile
-
- net.minecraftforge.client.model.generators.ModelBuilder<ItemModelBuilder>
-
- net.minecraftforge.client.model.generators.ItemModelBuilder
-
public class ItemModelBuilder extends ModelBuilder<ItemModelBuilder>
Builder for item models, adds the ability to build overrides viaoverride()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ItemModelBuilder.OverrideBuilder
-
Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.ModelBuilder
ModelBuilder.ElementBuilder, ModelBuilder.FaceRotation, ModelBuilder.Perspective, ModelBuilder.TransformsBuilder
-
Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.ModelFile
ModelFile.ExistingModelFile, ModelFile.UncheckedModelFile
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ItemModelBuilder.OverrideBuilder>
overrides
-
Fields inherited from class net.minecraftforge.client.model.generators.ModelBuilder
ambientOcclusion, customLoader, elements, existingFileHelper, guiLight, parent, textures, transforms
-
-
Constructor Summary
Constructors Constructor Description ItemModelBuilder(ResourceLocation outputLocation, ExistingFileHelper existingFileHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemModelBuilder.OverrideBuilder
override()
ItemModelBuilder.OverrideBuilder
override(int index)
Get an existing override buildercom.google.gson.JsonObject
toJson()
-
Methods inherited from class net.minecraftforge.client.model.generators.ModelBuilder
ao, customLoader, element, element, exists, getElementCount, gui3d, guiLight, parent, texture, texture, transforms
-
Methods inherited from class net.minecraftforge.client.model.generators.ModelFile
assertExistence, getLocation, getUncheckedLocation
-
-
-
-
Field Detail
-
overrides
protected java.util.List<ItemModelBuilder.OverrideBuilder> overrides
-
-
Constructor Detail
-
ItemModelBuilder
public ItemModelBuilder(ResourceLocation outputLocation, ExistingFileHelper existingFileHelper)
-
-
Method Detail
-
override
public ItemModelBuilder.OverrideBuilder override()
-
override
public ItemModelBuilder.OverrideBuilder override(int index)
Get an existing override builder- Parameters:
index
- the index of the existing override builder- Returns:
- the override builder
- Throws:
java.lang.IndexOutOfBoundsException
- if index is out of bounds
-
toJson
public com.google.gson.JsonObject toJson()
- Overrides:
toJson
in classModelBuilder<ItemModelBuilder>
-
-