Class PixelmonModelRenderer
java.lang.Object
net.minecraft.client.model.geom.ModelPart
com.pixelmonmod.pixelmon.client.models.PixelmonModelRenderer
public class PixelmonModelRenderer
extends net.minecraft.client.model.geom.ModelPart
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.model.geom.ModelPart
net.minecraft.client.model.geom.ModelPart.Cube, net.minecraft.client.model.geom.ModelPart.Visitor
-
Field Summary
Modifier and TypeFieldDescriptionboolean
double
double
double
float
Fields inherited from class net.minecraft.client.model.geom.ModelPart
children, cubes, DEFAULT_SCALE, initialPose, skipDraw, visible, x, xRot, xScale, y, yRot, yScale, z, zRot, zScale
-
Constructor Summary
ConstructorDescriptionPixelmonModelRenderer
(net.minecraft.client.model.Model model) PixelmonModelRenderer
(net.minecraft.client.model.Model model, String label) PixelmonModelRenderer
(net.minecraft.client.model.Model model, String label, int texOffX, int texOffY) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomModel
(ModelCustomWrapper model) net.minecraft.client.model.Model
getModel()
boolean
void
render
(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay) void
render
(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) protected void
renderCustomModels
(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha, float scale, float partialTick) void
setTransparent
(float transparency) Methods inherited from class net.minecraft.client.model.geom.ModelPart
copyFrom, getAllParts, getChild, getInitialPose, getRandomCube, hasChild, isEmpty, loadPose, offsetPos, offsetRotation, offsetScale, resetPose, setInitialPose, setPos, setRotation, storePose, translateAndRotate, visit
-
Field Details
-
label
-
objs
-
offsetX
public double offsetX -
offsetY
public double offsetY -
offsetZ
public double offsetZ -
isHidden
public boolean isHidden -
scale
public float scale
-
-
Constructor Details
-
PixelmonModelRenderer
-
PixelmonModelRenderer
public PixelmonModelRenderer(net.minecraft.client.model.Model model) -
PixelmonModelRenderer
public PixelmonModelRenderer(net.minecraft.client.model.Model model, String label, int texOffX, int texOffY)
-
-
Method Details
-
addCustomModel
-
setTransparent
public void setTransparent(float transparency) -
isTransparent
public boolean isTransparent() -
getModel
public net.minecraft.client.model.Model getModel() -
render
public void render(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) - Overrides:
render
in classnet.minecraft.client.model.geom.ModelPart
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay) - Overrides:
render
in classnet.minecraft.client.model.geom.ModelPart
-
renderCustomModels
protected void renderCustomModels(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha, float scale, float partialTick)
-