Class PixelmonModelBase<E extends net.minecraft.world.entity.Entity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.model.EntityModel<E>
com.pixelmonmod.pixelmon.client.models.PixelmonModelBase<E>
- Direct Known Subclasses:
PixelmonModelSmd
public abstract class PixelmonModelBase<E extends net.minecraft.world.entity.Entity>
extends net.minecraft.client.model.EntityModel<E>
-
Field Summary
Modifier and TypeFieldDescriptionnet.minecraft.client.renderer.MultiBufferSource
float
float
net.minecraft.resources.ResourceLocation
Fields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, young
Fields inherited from class net.minecraft.client.model.Model
renderType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected float
float
protected void
void
render
(net.minecraft.world.entity.Entity entity, com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) void
renderToBuffer
(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) void
setBuffer
(net.minecraft.client.renderer.MultiBufferSource buffer) void
setScale
(float scale) Methods inherited from class net.minecraft.client.model.EntityModel
copyPropertiesTo, prepareMobModel, setupAnim
Methods inherited from class net.minecraft.client.model.Model
renderType
-
Field Details
-
scale
public float scale -
movementThreshold
public float movementThreshold -
buffer
public net.minecraft.client.renderer.MultiBufferSource buffer -
texture
public net.minecraft.resources.ResourceLocation texture
-
-
Constructor Details
-
PixelmonModelBase
public PixelmonModelBase()
-
-
Method Details
-
setScale
public void setScale(float scale) -
setBuffer
public void setBuffer(net.minecraft.client.renderer.MultiBufferSource buffer) -
renderToBuffer
public void renderToBuffer(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) - Specified by:
renderToBuffer
in classnet.minecraft.client.model.Model
-
render
public void render(net.minecraft.world.entity.Entity entity, com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) -
getDefaultXRotation
protected float getDefaultXRotation() -
registerAnimationCounters
protected void registerAnimationCounters() -
getMovementThreshold
public float getMovementThreshold()
-