Package net.minecraftforge.client.model
Class PerspectiveMapWrapper
java.lang.Object
net.minecraftforge.client.model.PerspectiveMapWrapper
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
,IDynamicBakedModel
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PerspectiveMapWrapper.OverrideListWrapper
private final IBakedModel
private final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,
TransformationMatrix> -
Constructor Summary
ConstructorDescriptionPerspectiveMapWrapper
(IBakedModel parent, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType, TransformationMatrix> transforms) PerspectiveMapWrapper
(IBakedModel parent, IModelTransform 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<ItemCameraTransforms.TransformType,
TransformationMatrix> getTransforms
(IModelTransform state) static com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,
TransformationMatrix> getTransforms
(ItemCameraTransforms transforms) static com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,
TransformationMatrix> getTransformsWithFallback
(IModelTransform state, ItemCameraTransforms transforms) static IBakedModel
handlePerspective
(IBakedModel model, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType, TransformationMatrix> transforms, ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) static IBakedModel
handlePerspective
(IBakedModel model, IModelTransform state, ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) handlePerspective
(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) boolean
isAmbientOcclusion
(BlockState state) boolean
boolean
isGui3d()
boolean
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
getBakedModel, getLayerModels, getModelData, getParticleTexture, isLayered
-
Field Details
-
parent
-
transforms
private final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms -
overrides
-
-
Constructor Details
-
PerspectiveMapWrapper
public PerspectiveMapWrapper(IBakedModel parent, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType, TransformationMatrix> transforms) -
PerspectiveMapWrapper
-
-
Method Details
-
getTransforms
public static com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> getTransforms(IModelTransform state) -
getTransforms
public static com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> getTransforms(ItemCameraTransforms transforms) -
getTransformsWithFallback
public static com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> getTransformsWithFallback(IModelTransform state, ItemCameraTransforms transforms) -
handlePerspective
public static IBakedModel handlePerspective(IBakedModel model, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType, TransformationMatrix> transforms, ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) -
handlePerspective
public static IBakedModel handlePerspective(IBakedModel model, IModelTransform state, ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) -
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceIBakedModel
-
isAmbientOcclusion
- Specified by:
isAmbientOcclusion
in interfaceIForgeBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3d
in interfaceIBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLight
in interfaceIBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRenderer
in interfaceIBakedModel
-
getParticleIcon
- Specified by:
getParticleIcon
in interfaceIBakedModel
-
getTransforms
- Specified by:
getTransforms
in interfaceIBakedModel
-
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 interfaceIBakedModel
-
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 IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) - Specified by:
handlePerspective
in interfaceIForgeBakedModel
-