Class AnimatedSceneElement

Direct Known Subclasses:
MinecartElement, OutlinerElement, ParrotElement, WorldSectionElement

public abstract class AnimatedSceneElement extends PonderSceneElement
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected LerpedFloat
     
    protected net.minecraft.world.phys.Vec3
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected float
    applyFade(com.mojang.blaze3d.vertex.PoseStack ms, float pt)
     
    void
    forceApplyFade(float fade)
     
    protected int
    lightCoordsFromFade(float fade)
     
    final void
    renderFirst(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, float pt)
     
    protected void
    renderFirst(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, float fade, float pt)
     
    final void
    renderLast(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, float pt)
     
    protected void
    renderLast(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, float fade, float pt)
     
    final void
    renderLayer(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.renderer.RenderType type, com.mojang.blaze3d.vertex.PoseStack ms, float pt)
     
    protected void
    renderLayer(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.renderer.RenderType type, com.mojang.blaze3d.vertex.PoseStack ms, float fade, float pt)
     
    void
    setFade(float fade)
     
    void
    setFadeVec(net.minecraft.world.phys.Vec3 fadeVec)
     

    Methods inherited from class com.simibubi.create.foundation.ponder.element.PonderElement

    isVisible, reset, setVisible, tick, whileSkipping

    Methods inherited from class java.lang.Object

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

    • fadeVec

      protected net.minecraft.world.phys.Vec3 fadeVec
    • fade

      protected LerpedFloat fade
  • Constructor Details

    • AnimatedSceneElement

      public AnimatedSceneElement()
  • Method Details

    • forceApplyFade

      public void forceApplyFade(float fade)
    • setFade

      public void setFade(float fade)
    • setFadeVec

      public void setFadeVec(net.minecraft.world.phys.Vec3 fadeVec)
    • renderFirst

      public final void renderFirst(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, float pt)
      Specified by:
      renderFirst in class PonderSceneElement
    • renderLayer

      public final void renderLayer(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.renderer.RenderType type, com.mojang.blaze3d.vertex.PoseStack ms, float pt)
      Specified by:
      renderLayer in class PonderSceneElement
    • renderLast

      public final void renderLast(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, float pt)
      Specified by:
      renderLast in class PonderSceneElement
    • applyFade

      protected float applyFade(com.mojang.blaze3d.vertex.PoseStack ms, float pt)
    • renderLayer

      protected void renderLayer(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.renderer.RenderType type, com.mojang.blaze3d.vertex.PoseStack ms, float fade, float pt)
    • renderFirst

      protected void renderFirst(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, float fade, float pt)
    • renderLast

      protected void renderLast(PonderWorld world, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, float fade, float pt)
    • lightCoordsFromFade

      protected int lightCoordsFromFade(float fade)