Package net.minecraftforge.client.model
Class PerspectiveMapWrapper
java.lang.Object
net.minecraftforge.client.model.PerspectiveMapWrapper
- All Implemented Interfaces:
BakedModel
,IForgeBakedModel
,IDynamicBakedModel
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PerspectiveMapWrapper.OverrideListWrapper
private final BakedModel
private final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,
Transformation> -
Constructor Summary
ConstructorDescriptionPerspectiveMapWrapper
(BakedModel parent, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> transforms) PerspectiveMapWrapper
(BakedModel parent, ModelState state) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Override to tell the new model loader that it shouldn't wrap this modelgetQuads
(BlockState state, Direction side, Random rand, IModelData extraData) static com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,
Transformation> getTransforms
(ItemTransforms transforms) static com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,
Transformation> getTransforms
(ModelState state) static com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,
Transformation> getTransformsWithFallback
(ModelState state, ItemTransforms transforms) handlePerspective
(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack) static BakedModel
handlePerspective
(BakedModel model, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> transforms, ItemTransforms.TransformType cameraTransformType, PoseStack mat) static BakedModel
handlePerspective
(BakedModel model, ModelState state, ItemTransforms.TransformType cameraTransformType, PoseStack mat) boolean
boolean
isGui3d()
boolean
boolean
useAmbientOcclusion
(BlockState state) boolean
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.data.IDynamicBakedModel
getQuads
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getLayerModels, getModelData, getParticleIcon, isLayered
-
Field Details
-
parent
-
transforms
private final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> transforms -
overrides
-
-
Constructor Details
-
PerspectiveMapWrapper
public PerspectiveMapWrapper(BakedModel parent, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> transforms) -
PerspectiveMapWrapper
-
-
Method Details
-
getTransforms
public static com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> getTransforms(ModelState state) -
getTransforms
public static com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> getTransforms(ItemTransforms transforms) -
getTransformsWithFallback
public static com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> getTransformsWithFallback(ModelState state, ItemTransforms transforms) -
handlePerspective
public static BakedModel handlePerspective(BakedModel model, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> transforms, ItemTransforms.TransformType cameraTransformType, PoseStack mat) -
handlePerspective
public static BakedModel handlePerspective(BakedModel model, ModelState state, ItemTransforms.TransformType cameraTransformType, PoseStack mat) -
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
-
useAmbientOcclusion
- Specified by:
useAmbientOcclusion
in interfaceIForgeBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3d
in interfaceBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLight
in interfaceBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRenderer
in interfaceBakedModel
-
getParticleIcon
- Specified by:
getParticleIcon
in interfaceBakedModel
-
getTransforms
- Specified by:
getTransforms
in interfaceBakedModel
-
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, Random rand, IModelData extraData) - Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
-
doesHandlePerspectives
public boolean doesHandlePerspectives()Description copied from interface:IForgeBakedModel
Override to tell the new model loader that it shouldn't wrap this model- Specified by:
doesHandlePerspectives
in interfaceIForgeBakedModel
-
handlePerspective
public BakedModel handlePerspective(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack) - Specified by:
handlePerspective
in interfaceIForgeBakedModel
-