Java Code Examples for net.minecraftforge.client.model.PerspectiveMapWrapper#handlePerspective()
The following examples show how to use
net.minecraftforge.client.model.PerspectiveMapWrapper#handlePerspective() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractBakedPropertiesModel.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 5 votes |
@Override public IBakedModel handlePerspective(TransformType transformType, MatrixStack mat) { if (properties instanceof PerspectiveProperties) { ImmutableMap<TransformType, TransformationMatrix> transforms = ((PerspectiveProperties) properties).getTransforms(); return PerspectiveMapWrapper.handlePerspective(this, transforms, transformType, mat); } return IModelParticleProvider.super.handlePerspective(transformType, mat); }
Example 2
Source File: BakedModelHandler.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
@Override public Pair<? extends IBakedModel, Matrix4f> handlePerspective(TransformType cameraTransformType) { CCRenderItem.notifyTransform(cameraTransformType); return PerspectiveMapWrapper.handlePerspective(this, TransformUtils.DEFAULT_BLOCK, cameraTransformType); }
Example 3
Source File: GTModelMortar.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@Override public Pair<? extends IBakedModel, Matrix4f> handlePerspective(TransformType cameraTransformType) { return PerspectiveMapWrapper.handlePerspective(this, this.getCamera(), cameraTransformType); }
Example 4
Source File: GTModelWire.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
public Pair<? extends IBakedModel, Matrix4f> handlePerspective(TransformType cameraTransformType) { return PerspectiveMapWrapper.handlePerspective(this, this.getCamera(), cameraTransformType); }
Example 5
Source File: ModelEnderBucket.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public Pair<? extends IBakedModel, Matrix4f> handlePerspective(TransformType cameraTransformType) { return PerspectiveMapWrapper.handlePerspective(this, this.transforms, cameraTransformType); }
Example 6
Source File: ModelEnderTools.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public Pair<? extends IBakedModel, Matrix4f> handlePerspective(TransformType cameraTransformType) { return PerspectiveMapWrapper.handlePerspective(this, this.transforms, cameraTransformType); }
Example 7
Source File: ModelNullifierBaked.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public Pair<? extends IBakedModel, Matrix4f> handlePerspective(TransformType cameraTransformType) { return PerspectiveMapWrapper.handlePerspective(this, this.transformMap, cameraTransformType); }
Example 8
Source File: BakedModelAdapter.java From OpenModsLib with MIT License | 4 votes |
@Override public Pair<? extends IBakedModel, Matrix4f> handlePerspective(TransformType cameraTransformType) { return PerspectiveMapWrapper.handlePerspective(this, cameraTransforms, cameraTransformType); }
Example 9
Source File: IItemRenderer.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 2 votes |
/** * Called to handle this model's perspective. Either use {@link #getTransforms()} * Or add to the {@link MatrixStack} for the given {@link TransformType}. * * @param transformType Where we are handling perspective for. * @param mat The {@link MatrixStack}. * @return The same model. */ @Override default IBakedModel handlePerspective(TransformType transformType, MatrixStack mat) { return PerspectiveMapWrapper.handlePerspective(this, getTransforms(), transformType, mat); }