Class AnimatableModel

java.lang.Object
net.minecraft.client.model.Model
com.codinglitch.simpleradio.client.core.central.AnimatableModel
Direct Known Subclasses:
RadioModel

public abstract class AnimatableModel extends net.minecraft.client.model.Model
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<Integer,net.minecraft.client.animation.AnimationDefinition>
     

    Fields inherited from class net.minecraft.client.model.Model

    renderType
  • Constructor Summary

    Constructors
    Constructor
    Description
    AnimatableModel(Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> function)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    allocate(int id, net.minecraft.client.animation.AnimationDefinition definition)
     
    protected void
    animate(net.minecraft.world.entity.AnimationState animationState, net.minecraft.client.animation.AnimationDefinition animationDefinition, float age)
     
    Optional<net.minecraft.client.model.geom.ModelPart>
     
    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)
     
    abstract net.minecraft.client.model.geom.ModelPart
     
    void
    setupAnim(Animatable animatable, float ageInTicks)
     

    Methods inherited from class net.minecraft.client.model.Model

    renderType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • animations

      protected final Map<Integer,net.minecraft.client.animation.AnimationDefinition> animations
  • 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

      public Optional<net.minecraft.client.model.geom.ModelPart> getAnyDescendantWithName(String name)
    • animate

      protected void animate(net.minecraft.world.entity.AnimationState animationState, net.minecraft.client.animation.AnimationDefinition animationDefinition, float age)
    • setupAnim

      public void setupAnim(Animatable animatable, float ageInTicks)
    • allocate

      public void allocate(int id, net.minecraft.client.animation.AnimationDefinition definition)
    • 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:
      renderToBuffer in class net.minecraft.client.model.Model