Class GenTore.EllipsoidTore
java.lang.Object
net.rodofire.easierworldcreator.worldgenutil.GenTore.EllipsoidTore
- Enclosing class:
GenTore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateEmptyTore(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 voidgenerateEmptyTore(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 voidgenerateEmptyTore(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 voidgenerateFullTore(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 voidgenerateFullTore(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 voidgenerateFullTore(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.Vec3dgetEllipsoidalToreCoordinates(int u, int v, int xInnerRadius, int xOuterRadius, int zInnerRadius, int zOuterRadius) static doublegetInnerRadius(int xInnerRadius, int zInnerRadius, int angle) static doublegetOuterRadius(int xOuterRadius, int zOuterRadius, int angle) static net.minecraft.util.math.Vec3dgetPreciseToreCoordinates(int u, int v, int innerRadius, int outerRadius)
-
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 inpos- the center of the torusforce- force the block if truexInnerRadius- the inner radius relative to the x-axisxOuterRadius- the outer radius relative to the x-axiszInnerRadius- the inner radius relative to the z axiszOuterRadius- the outer radius relative to the z axisxRotation- the rotation in degrees relative to the x-axisyRotation- the rotation in degrees relative to the y-axisblocksToForce- list of the blocks that can still be forced if force = falseblocksToPlace- 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 inpos- the center of the torusforce- force the block if truexInnerRadius- the inner radius relative to the x-axisxOuterRadius- the outer radius relative to the x-axiszInnerRadius- the inner radius relative to the z axiszOuterRadius- the outer radius relative to the z axisxRotation- the rotation in degrees relative to the x-axisyRotation- the rotation in degrees relative to the y-axisblocksToForce- list of the blocks that can still be forced if force = falseblocksToPlace- 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)
-