public class TorusGen extends FillableShape
allow you to generate torus shape
  • Constructor Details

    • TorusGen

      public TorusGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, int innerRadius, int outerRadius)
    • TorusGen

      public TorusGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation, int innerRadius, int outerRadius)
  • Method Details

    • getInnerRadiusx

      public int getInnerRadiusx()
    • setInnerRadiusx

      public void setInnerRadiusx(int innerRadiusx)
    • getOuterRadiusx

      public int getOuterRadiusx()
    • setOuterRadiusx

      public void setOuterRadiusx(int outerRadiusx)
    • getInnerRadiusz

      public int getInnerRadiusz()
    • setInnerRadiusz

      public void setInnerRadiusz(int innerRadiusz)
    • getOuterRadiusz

      public int getOuterRadiusz()
    • setOuterRadiusz

      public void setOuterRadiusz(int outerRadiusz)
    • getTorusType

      public TorusGen.TorusType getTorusType()
    • setTorusType

      public void setTorusType(TorusGen.TorusType torusType)
    • getVerticalTorus

      public float getVerticalTorus()
    • setVerticalTorus

      public void setVerticalTorus(float verticalTorus)
    • getHorizontalTorus

      public float getHorizontalTorus()
    • setHorizontalTorus

      public void setHorizontalTorus(float horizontalTorus)
    • getBlockPos

      public List<net.minecraft.util.math.BlockPos> getBlockPos()
      Specified by:
      getBlockPos in class Shape
    • getVec3d

      public List<net.minecraft.util.math.Vec3d> getVec3d()
      Specified by:
      getVec3d in class Shape
    • generateFullTore

      public List<net.minecraft.util.math.BlockPos> generateFullTore()
      generates a full tore / tore with custom filling the shape with the torus might be different from the empty one if you're using custom torus filling
      Returns:
      a list of every blockPos
    • generateEmptyTore

      public List<net.minecraft.util.math.BlockPos> generateEmptyTore()
      generates an empty torus the shape with the torus might be different from the full one if you're using custom torus filling
      Returns:
      a list of every blockPos
    • getEllipsoidalToreCoordinates

      public net.minecraft.util.math.Vec3d getEllipsoidalToreCoordinates(int u, int v)
    • getInnerRadius

      public double getInnerRadius(int angle)
    • getOuterRadius

      public double getOuterRadius(int angle)