Class GenTore.CircularTore
java.lang.Object
fr.rodofire.ewc.shape.block.simplegen.GenTore.CircularTore
- Enclosing class:
GenTore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateEmptyTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.world.level.block.Block> blocksToForce, List<net.minecraft.world.level.block.state.BlockState> blocksToPlace) static voidgenerateEmptyTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, Set<net.minecraft.world.level.block.Block> blocksToForce, List<net.minecraft.world.level.block.state.BlockState> blocksToPlace) static voidgenerateEmptyTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, int innerRadius, int outerRadius, net.minecraft.world.level.block.state.BlockState blocksToPlace) static voidgenerateFullTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.world.level.block.Block> blocksToForce, List<net.minecraft.world.level.block.state.BlockState> blocksToPlace) static voidgenerateFullTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, Set<net.minecraft.world.level.block.Block> blocksToForce, List<net.minecraft.world.level.block.state.BlockState> blocksToPlace) static voidgenerateFullTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, net.minecraft.world.level.block.state.BlockState blocksToPlace) static voidgenerateNaturalFullTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.world.level.block.Block> blocksToForce) generate a natural torus with the default blocks (grass [1 block], dirt [3 blocks], Stone[x blocks])static voidgenerateNaturalFullTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.world.level.block.Block> blocksToForce, List<net.minecraft.world.level.block.state.BlockState> grass, List<net.minecraft.world.level.block.state.BlockState> dirt, List<net.minecraft.world.level.block.state.BlockState> stone, int firstLayer, int secondLayer) Generate a torus with a natural aspect.static net.minecraft.world.phys.Vec3getPreciseToreCoordinates(int u, int v, int innerRadius, int outerRadius) static net.minecraft.world.phys.Vec3getToreCoordinates(int u, int v, int innerRadius, int outerRadius)
-
Constructor Details
-
CircularTore
public CircularTore()
-
-
Method Details
-
generateFullTore
public static void generateFullTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, net.minecraft.world.level.block.state.BlockState blocksToPlace) -
generateFullTore
-
generateFullTore
public static void generateFullTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.world.level.block.Block> blocksToForce, List<net.minecraft.world.level.block.state.BlockState> blocksToPlace) - Parameters:
world- the world that the structure will spawn inpos- the center of the torusforce- force the block if trueinnerRadius- the radius of the circleouterRadius- the radius of the center of the circlexRotation- 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
-
generateNaturalFullTore
public static void generateNaturalFullTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.world.level.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.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.world.level.block.Block> blocksToForce, List<net.minecraft.world.level.block.state.BlockState> grass, List<net.minecraft.world.level.block.state.BlockState> dirt, List<net.minecraft.world.level.block.state.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 structuredirt- list of blockState that will be placed under the grass at a depth of three blocksstone- list of blockStates that will be placed under the dirt
-
generateEmptyTore
-
generateEmptyTore
public static void generateEmptyTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, int innerRadius, int outerRadius, net.minecraft.world.level.block.state.BlockState blocksToPlace) -
generateEmptyTore
public static void generateEmptyTore(net.minecraft.world.level.WorldGenLevel world, net.minecraft.core.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xRotation, int yRotation, Set<net.minecraft.world.level.block.Block> blocksToForce, List<net.minecraft.world.level.block.state.BlockState> blocksToPlace) - Parameters:
world- the world that the structure will spawn inpos- the center of the torusforce- force the block if trueinnerRadius- the radius of the circleouterRadius- the radius of the center of the circlexRotation- 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
-
getToreCoordinates
public static net.minecraft.world.phys.Vec3 getToreCoordinates(int u, int v, int innerRadius, int outerRadius) -
getPreciseToreCoordinates
public static net.minecraft.world.phys.Vec3 getPreciseToreCoordinates(int u, int v, int innerRadius, int outerRadius)
-