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
,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, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation) bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) 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, resolveParents
-
Constructor Details
-
SimpleUnbakedGeometry
public SimpleUnbakedGeometry()
-
-
Method Details
-
bake
public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, 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, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation)
-