Package net.minecraftforge.client.model
Class PerspectiveMapWrapper
- java.lang.Object
-
- net.minecraftforge.client.model.PerspectiveMapWrapper
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
,IDynamicBakedModel
public class PerspectiveMapWrapper extends java.lang.Object implements IDynamicBakedModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
PerspectiveMapWrapper.OverrideListWrapper
-
Field Summary
Fields Modifier and Type Field Description private PerspectiveMapWrapper.OverrideListWrapper
overrides
private IBakedModel
parent
private com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix>
transforms
-
Constructor Summary
Constructors Constructor Description PerspectiveMapWrapper(IBakedModel parent, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms)
PerspectiveMapWrapper(IBakedModel parent, IModelTransform state)
-
Method Summary
-
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 Detail
-
parent
private final IBakedModel parent
-
transforms
private final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms
-
overrides
private final PerspectiveMapWrapper.OverrideListWrapper overrides
-
-
Constructor Detail
-
PerspectiveMapWrapper
public PerspectiveMapWrapper(IBakedModel parent, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms)
-
PerspectiveMapWrapper
public PerspectiveMapWrapper(IBakedModel parent, IModelTransform state)
-
-
Method Detail
-
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
public boolean isAmbientOcclusion(BlockState state)
- 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
public TextureAtlasSprite getParticleIcon()
- Specified by:
getParticleIcon
in interfaceIBakedModel
-
getTransforms
public ItemCameraTransforms getTransforms()
- Specified by:
getTransforms
in interfaceIBakedModel
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand, IModelData extraData)
- Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
getOverrides
public ItemOverrideList 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
-
-