Class AnimatableModel
java.lang.Object
net.minecraft.client.model.Model
com.codinglitch.simpleradio.client.core.AnimatableModel
public abstract class AnimatableModel
extends net.minecraft.client.model.Model
-
Field Summary
Fields inherited from class net.minecraft.client.model.Model
renderType -
Constructor Summary
ConstructorsConstructorDescriptionAnimatableModel(Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> function) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanimate(net.minecraft.world.entity.AnimationState animationState, net.minecraft.client.animation.AnimationDefinition animationDefinition, float age, float speed) Optional<net.minecraft.client.model.geom.ModelPart>abstract voidrenderToBuffer(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int i, int i1, float v, float v1, float v2, float v3) abstract net.minecraft.client.model.geom.ModelPartroot()abstract voidsetupAnim(RadioBlockEntity blockEntity, float ageInTicks) Methods inherited from class net.minecraft.client.model.Model
renderType
-
Constructor Details
-
AnimatableModel
public AnimatableModel(Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> function)
-
-
Method Details
-
root
public abstract net.minecraft.client.model.geom.ModelPart root() -
getAnyDescendantWithName
-
animate
protected void animate(net.minecraft.world.entity.AnimationState animationState, net.minecraft.client.animation.AnimationDefinition animationDefinition, float age, float speed) -
setupAnim
-
renderToBuffer
public abstract void renderToBuffer(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int i, int i1, float v, float v1, float v2, float v3) - Specified by:
renderToBufferin classnet.minecraft.client.model.Model
-