Class GenTore.CircularTore

java.lang.Object
net.rodofire.easierworldcreator.worldgenutil.GenTore.CircularTore
Enclosing class:
GenTore

public static class GenTore.CircularTore 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 innerRadius, int outerRadius, 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 innerRadius, int outerRadius, 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 innerRadius, int outerRadius, net.minecraft.block.BlockState blocksToPlace)
     
    static void
    generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, 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 innerRadius, int outerRadius, 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 innerRadius, int outerRadius, net.minecraft.block.BlockState blocksToPlace)
     
    static void
    generateNaturalFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.block.Block> blocksToForce)
    generate a natural torus with the default blocks (grass [1 block], dirt [3 blocks], Stone[x blocks])
    static void
    generateNaturalFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> grass, List<net.minecraft.block.BlockState> dirt, List<net.minecraft.block.BlockState> stone, int firstLayer, int secondLayer)
    Generate a torus with a natural aspect.
    static net.minecraft.util.math.Vec3d
    getPreciseToreCoordinates(int u, int v, int innerRadius, int outerRadius)
     
    static net.minecraft.util.math.Vec3d
    getToreCoordinates(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

    • CircularTore

      public CircularTore()
  • Method Details

    • generateFullTore

      public static void generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, net.minecraft.block.BlockState blocksToPlace)
    • generateFullTore

      public static void generateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, 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 innerRadius, int outerRadius, 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
      innerRadius - the radius of the circle
      outerRadius - the radius of the center of the circle
      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
    • generateNaturalFullTore

      public static void generateNaturalFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.block.Block> blocksToForce)
      generate a natural torus with the default blocks (grass [1 block], dirt [3 blocks], Stone[x blocks])
    • generateNaturalFullTore

      public static void generateNaturalFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> grass, List<net.minecraft.block.BlockState> dirt, List<net.minecraft.block.BlockState> stone, int firstLayer, int secondLayer)
      Generate a torus with a natural aspect. The three lists should not contain any block in common, or you will run into issues
      Parameters:
      grass - list of blockState that will be placed on top of the structure
      dirt - list of blockState that will be placed under the grass at a depth of three blocks
      stone - list of blockStates that will be placed under the dirt
    • generateEmptyTore

      public static void generateEmptyTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, 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 innerRadius, int outerRadius, net.minecraft.block.BlockState blocksToPlace)
    • generateEmptyTore

      public static void generateEmptyTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, 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
      innerRadius - the radius of the circle
      outerRadius - the radius of the center of the circle
      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
    • getToreCoordinates

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

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