Package net.minecraftforge.client.model
Class SeparatePerspectiveModel
- java.lang.Object
-
- net.minecraftforge.client.model.SeparatePerspectiveModel
-
- All Implemented Interfaces:
IModelGeometry<SeparatePerspectiveModel>
public class SeparatePerspectiveModel extends java.lang.Object implements IModelGeometry<SeparatePerspectiveModel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SeparatePerspectiveModel.BakedModel
static class
SeparatePerspectiveModel.Loader
-
Field Summary
Fields Modifier and Type Field Description private BlockModel
baseModel
private com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,BlockModel>
perspectives
-
Constructor Summary
Constructors Constructor Description SeparatePerspectiveModel(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,BlockModel> perspectives)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBakedModel
bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
java.util.Collection<RenderMaterial>
getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.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.IModelGeometry
getPart, getParts
-
-
-
-
Field Detail
-
baseModel
private final BlockModel baseModel
-
perspectives
private final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,BlockModel> perspectives
-
-
Constructor Detail
-
SeparatePerspectiveModel
public SeparatePerspectiveModel(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,BlockModel> perspectives)
-
-
Method Detail
-
bake
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
- Specified by:
bake
in interfaceIModelGeometry<SeparatePerspectiveModel>
-
getTextures
public java.util.Collection<RenderMaterial> getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
- Specified by:
getTextures
in interfaceIModelGeometry<SeparatePerspectiveModel>
-
-