Interface EmitterShape

All Known Implementing Classes:
Cube, Cylinder, Disc, Hemisphere, Plane, Point, Sphere, Torus

public interface EmitterShape
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<EmitterShape>
     
  • 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)
     
    void
    renderShape(com.mojang.blaze3d.vertex.PoseStack stack, com.mojang.blaze3d.vertex.VertexConsumer consumer, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation)
     
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<EmitterShape> CODEC
  • Method Details

    • getPoint

      org.joml.Vector3d getPoint(net.minecraft.util.RandomSource randomSource, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation, org.joml.Vector3dc position, boolean fromSurface)
    • renderShape

      void renderShape(com.mojang.blaze3d.vertex.PoseStack stack, com.mojang.blaze3d.vertex.VertexConsumer consumer, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation)