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