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

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

    Modifier and Type
    Method
    Description
    protected void
    animate(net.minecraft.world.entity.AnimationState animationState, net.minecraft.client.animation.AnimationDefinition animationDefinition, float age, float speed)
     
    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
     
    abstract void
    setupAnim(RadioBlockEntity blockEntity, 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
  • 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, float speed)
    • setupAnim

      public abstract void setupAnim(RadioBlockEntity blockEntity, float ageInTicks)
    • 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