java.lang.Object
foundry.veil.api.quasar.emitters.shape.Sphere
All Implemented Interfaces:
EmitterShape

public class Sphere extends Object implements EmitterShape
  • Field Summary

    Fields inherited from interface foundry.veil.api.quasar.emitters.shape.EmitterShape

    CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Vector3d
    getPoint(net.minecraft.util.RandomSource randomSource, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation, org.joml.Vector3dc position, boolean fromSurface)
     
    static org.joml.Vector3f
    parametricSphere(float u, float v, float r)
     
    void
    renderShape(com.mojang.blaze3d.vertex.PoseStack stack, com.mojang.blaze3d.vertex.VertexConsumer consumer, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation)
     

    Methods inherited from class java.lang.Object

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

    • Sphere

      public Sphere()
  • Method Details

    • getPoint

      public org.joml.Vector3d getPoint(net.minecraft.util.RandomSource randomSource, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation, org.joml.Vector3dc position, boolean fromSurface)
      Specified by:
      getPoint in interface EmitterShape
    • renderShape

      public void renderShape(com.mojang.blaze3d.vertex.PoseStack stack, com.mojang.blaze3d.vertex.VertexConsumer consumer, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation)
      Specified by:
      renderShape in interface EmitterShape
    • parametricSphere

      public static org.joml.Vector3f parametricSphere(float u, float v, float r)