Class GenTore.CircularTore
java.lang.Object
net.rodofire.easierworldcreator.worldgenutil.GenTore.CircularTore
- 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 innerRadius, int outerRadius, int xrotation, int yrotation, List<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 innerRadius, int outerRadius, List<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 innerRadius, int outerRadius, net.minecraft.block.BlockState blocksToPlace) static voidgenerateFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xrotation, int yrotation, List<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 innerRadius, int outerRadius, List<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 innerRadius, int outerRadius, net.minecraft.block.BlockState blocksToPlace) static voidgenerateNaturalFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xrotation, int yrotation, List<net.minecraft.block.Block> blocksToForce) generate a natural tore with the default blocks (grass [1 block], dirt [3 blocks], Stone[x blocks])static voidgenerateNaturalFullTore(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, int innerRadius, int outerRadius, int xrotation, int yrotation, List<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 tore with a natural aspect.static net.minecraft.util.math.Vec3dgetPreciseToreCoordinates(int u, int v, int innerRadius, int outerRadius) static net.minecraft.util.math.Vec3dgetToreCoordinates(int u, int v, int innerRadius, int outerRadius)
-
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
-
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, List<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace) - Parameters:
world- the world that the structure wiil spawn inpos- the center of the toreforce- 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 froce = falseblocksToPlace- 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, List<net.minecraft.block.Block> blocksToForce) generate a natural tore 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, List<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 tore with a natural aspect. The 3 list 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 3 blocksstone- list of blockStates that will be placed under the dirt
-
generateEmptyTore
-
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, List<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace) - Parameters:
world- the world that the structure wiil spawn inpos- the center of the toreforce- 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 froce = falseblocksToPlace- 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)
-