Package net.minecraftforge.client.model
Class EmptyModel
java.lang.Object
net.minecraftforge.client.model.geometry.SimpleUnbakedGeometry<EmptyModel>
net.minecraftforge.client.model.EmptyModel
- All Implemented Interfaces:
IUnbakedGeometry<EmptyModel>
A completely empty model with no quads or texture dependencies.
You can access it as a BakedModel
, an IUnbakedGeometry
or an IGeometryLoader
.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BakedModel
static final EmptyModel
static final IGeometryLoader<EmptyModel>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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
-
Field Details
-
BAKED
-
INSTANCE
-
LOADER
-
-
Constructor Details
-
EmptyModel
private EmptyModel()
-
-
Method Details
-
addQuads
protected void addQuads(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation) - Specified by:
addQuads
in classSimpleUnbakedGeometry<EmptyModel>
-
bake
public BakedModel bake(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
bake
in interfaceIUnbakedGeometry<EmptyModel>
- Overrides:
bake
in classSimpleUnbakedGeometry<EmptyModel>
-
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<EmptyModel>
- Specified by:
getMaterials
in classSimpleUnbakedGeometry<EmptyModel>
-