Class GenTore.EllipsoidTore

java.lang.Object
net.rodofire.easierworldcreator.shape.block.simplegen.GenTore.EllipsoidTore
Enclosing class:
GenTore

public static class GenTore.EllipsoidTore extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    generateEmptyTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, int xRotation, int yRotation, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace)
     
    static void
    generateEmptyTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace)
     
    static void
    generateEmptyTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, net.minecraft.block.BlockState blocksToPlace)
     
    static void
    generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, int xRotation, int yRotation, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace)
     
    static void
    generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace)
     
    static void
    generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, net.minecraft.block.BlockState blocksToPlace)
     
    static net.minecraft.util.math.Vec3d
    getEllipsoidalToreCoordinates(int u, int v, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius)
     
    static double
    getInnerRadius(int xInnerRadius, int zInnerRadius, int angle)
     
    static double
    getOuterRadius(int xOuterRadius, int zOuterRadius, int angle)
     
    static net.minecraft.util.math.Vec3d
    getPreciseToreCoordinates(int u, int v, int innerRadius, int outerRadius)
     

    Methods inherited from class java.lang.Object

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

    • EllipsoidTore

      public EllipsoidTore()
  • Method Details

    • generateFullTore

      public static void generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, net.minecraft.block.BlockState blocksToPlace)
    • generateFullTore

      public static void generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace)
    • generateFullTore

      public static void generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, int xRotation, int yRotation, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace)
      Parameters:
      world - the world that the structure will spawn in
      pos - the center of the torus
      force - force the block if true
      xInnerRadius - the inner radius relative to the x-axis
      xOuterRadius - the outer radius relative to the x-axis
      zInnerRadius - the inner radius relative to the z axis
      zOuterRadius - the outer radius relative to the z axis
      xRotation - the rotation in degrees relative to the x-axis
      yRotation - the rotation in degrees relative to the y-axis
      blocksToForce - list of the blocks that can still be forced if force = false
      blocksToPlace - list of blockStates that the structure will randomly place
    • getInnerRadius

      public static double getInnerRadius(int xInnerRadius, int zInnerRadius, int angle)
    • getOuterRadius

      public static double getOuterRadius(int xOuterRadius, int zOuterRadius, int angle)
    • generateEmptyTore

      public static void generateEmptyTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace)
    • generateEmptyTore

      public static void generateEmptyTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, net.minecraft.block.BlockState blocksToPlace)
    • generateEmptyTore

      public static void generateEmptyTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius, int xRotation, int yRotation, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace)
      Parameters:
      world - the world that the structure will spawn in
      pos - the center of the torus
      force - force the block if true
      xInnerRadius - the inner radius relative to the x-axis
      xOuterRadius - the outer radius relative to the x-axis
      zInnerRadius - the inner radius relative to the z axis
      zOuterRadius - the outer radius relative to the z axis
      xRotation - the rotation in degrees relative to the x-axis
      yRotation - the rotation in degrees relative to the y-axis
      blocksToForce - list of the blocks that can still be forced if force = false
      blocksToPlace - list of blockStates that the structure will randomly place
    • getEllipsoidalToreCoordinates

      public static net.minecraft.util.math.Vec3d getEllipsoidalToreCoordinates(int u, int v, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius)
    • getPreciseToreCoordinates

      public static net.minecraft.util.math.Vec3d getPreciseToreCoordinates(int u, int v, int innerRadius, int outerRadius)