Package net.minecraftforge.client.model
Class ElementsModel
java.lang.Object
net.minecraftforge.client.model.geometry.SimpleUnbakedGeometry<ElementsModel>
net.minecraftforge.client.model.ElementsModel
- All Implemented Interfaces:
IUnbakedGeometry<ElementsModel>
A model composed of vanilla block elements.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final List<BlockElement>
private static final org.apache.logging.log4j.Logger
-
Constructor Summary
ModifierConstructorDescriptionElementsModel
(List<BlockElement> elements) private
ElementsModel
(List<BlockElement> elements, boolean deprecatedLoader) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addQuads
(IGeometryBakingContext context, IModelBuilder<?> modelBuilder, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ResourceLocation modelLocation) getMaterials
(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) Methods inherited from class net.minecraftforge.client.model.geometry.SimpleUnbakedGeometry
bake
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.model.geometry.IUnbakedGeometry
getConfigurableComponentNames
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
elements
-
deprecatedLoader
private final boolean deprecatedLoader
-
-
Constructor Details
-
ElementsModel
-
ElementsModel
-
-
Method Details
-
addQuads
protected void addQuads(IGeometryBakingContext context, IModelBuilder<?> modelBuilder, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ResourceLocation modelLocation) - Specified by:
addQuads
in classSimpleUnbakedGeometry<ElementsModel>
-
getMaterials
public Collection<Material> getMaterials(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getMaterials
in interfaceIUnbakedGeometry<ElementsModel>
- Specified by:
getMaterials
in classSimpleUnbakedGeometry<ElementsModel>
-