Class RenderData

java.lang.Object
foundry.veil.api.quasar.particle.RenderData

public final class RenderData extends Object
  • Field Details

    • BLANK

      @Deprecated public static final net.minecraft.resources.ResourceLocation BLANK
      Deprecated.
    • renderAge

      public float renderAge
    • agePercent

      public float agePercent
  • Constructor Details

  • Method Details

    • tick

      @Internal public void tick(QuasarParticle particle, int packedLight)
    • render

      @Internal public void render(QuasarParticle particle, float partialTicks)
    • markDirty

      public void markDirty()
      Forces the render type to be updated on the next render call.
      Since:
      1.3.0
    • getRenderPosition

      public org.joml.Vector3dc getRenderPosition()
    • getRenderRotation

      public org.joml.Vector3fc getRenderRotation()
    • getRenderRadius

      public float getRenderRadius()
    • getRenderAge

      public float getRenderAge()
    • getAgePercent

      public float getAgePercent()
    • getPackedLight

      public int getPackedLight()
    • getFixedPackedLight

      public int getFixedPackedLight()
    • getRed

      public float getRed()
    • getGreen

      public float getGreen()
    • getBlue

      public float getBlue()
    • getAlpha

      public float getAlpha()
    • getSpriteData

      @Nullable public @Nullable SpriteData getSpriteData()
    • getAtlasSprite

      public net.minecraft.client.renderer.texture.TextureAtlasSprite getAtlasSprite()
    • isAdditive

      public boolean isAdditive()
      Since:
      1.3.0
    • getRenderType

      public net.minecraft.client.renderer.RenderType getRenderType()
      Returns:
      The render type to use for this particle
    • getTrails

      public List<Trail> getTrails()
    • renderTrails

      public void renderTrails(MatrixStack matrixStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, net.minecraft.world.phys.Vec3 cameraPos, int packedLight)
    • setRed

      public void setRed(float red)
    • setGreen

      public void setGreen(float green)
    • setBlue

      public void setBlue(float blue)
    • setAlpha

      public void setAlpha(float alpha)
    • setColor

      public void setColor(float red, float green, float blue, float alpha)
    • setColor

      public void setColor(org.joml.Vector4fc color)
    • setColor

      public void setColor(Colorc color)
    • setFixedPackedLight

      public void setFixedPackedLight(int fixedPackedLight)
    • setAdditive

      public void setAdditive(boolean additive)
      Since:
      1.3.0
    • setSpriteData

      public void setSpriteData(@Nullable @Nullable SpriteData spriteData)
    • setAtlasSprite

      public void setAtlasSprite(@Nullable @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite atlasSprite)