Class SimpleUnbakedGeometry<T extends SimpleUnbakedGeometry<T>>
java.lang.Object
net.minecraftforge.client.model.geometry.SimpleUnbakedGeometry<T>
- All Implemented Interfaces:
IUnbakedGeometry<T>
- Direct Known Subclasses:
ElementsModel
,EmptyModel
,NewModelLoaderTest.TestModel
,ObjModel
public abstract class SimpleUnbakedGeometry<T extends SimpleUnbakedGeometry<T>>
extends Object
implements IUnbakedGeometry<T>
Base class for implementations of
IUnbakedGeometry
which do not wish to handle model creation themselves,
instead supplying baked quads through a builder.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addQuads
(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation) bake
(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) abstract Collection<Material>
getMaterials
(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) 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
-
Constructor Details
-
SimpleUnbakedGeometry
public SimpleUnbakedGeometry()
-
-
Method Details
-
bake
public BakedModel bake(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
bake
in interfaceIUnbakedGeometry<T extends SimpleUnbakedGeometry<T>>
-
addQuads
protected abstract void addQuads(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation) -
getMaterials
public abstract Collection<Material> getMaterials(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getMaterials
in interfaceIUnbakedGeometry<T extends SimpleUnbakedGeometry<T>>
-