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<ItemTransforms.TransformType,
BlockModel> -
Constructor Summary
ConstructorDescriptionSeparatePerspectiveModel
(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, BlockModel> perspectives) -
Method Summary
Modifier and TypeMethodDescriptionbake
(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) getTextures
(IModelConfiguration owner, 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.IModelGeometry
getPart, getParts
-
Field Details
-
baseModel
-
perspectives
private final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,BlockModel> perspectives
-
-
Constructor Details
-
SeparatePerspectiveModel
public SeparatePerspectiveModel(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, BlockModel> perspectives)
-
-
Method Details
-
bake
public BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
bake
in interfaceIModelGeometry<SeparatePerspectiveModel>
-
getTextures
public Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getTextures
in interfaceIModelGeometry<SeparatePerspectiveModel>
-