Class GenSpiral.circularSpiral
java.lang.Object
net.rodofire.easierworldcreator.worldgenutil.GenSpiral.circularSpiral
- Enclosing class:
GenSpiral
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateCircleSpiral(int large, int radius, int height, int turn, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, List<net.minecraft.block.BlockState> blockState) Generate a spiral that goes around the center pointstatic voidgenerateFullSpiral(int height, int turn, int start, int end, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, List<net.minecraft.block.BlockState> blockState) this generates a Spiral that fill blocks in a straight line starting from the center to the separated from the radiusstatic voidgenerateFullSpiral(int radius, int height, int turn, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, List<net.minecraft.block.BlockState> blockState) static voidgenerateSpiral(int radius, int height, int turn, List<net.minecraft.block.BlockState> blocks, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos) static voidgenerateSpiral(int radius, int height, int turn, net.minecraft.block.BlockState block, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos) static voidgenerateSpiral(int radius, int height, int turn, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, double k, List<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace) static voidgenerateSpiral(int radius, int height, net.minecraft.block.BlockState block, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos)
-
Constructor Details
-
circularSpiral
public circularSpiral()
-
-
Method Details
-
generateSpiral
public static void generateSpiral(int radius, int height, int turn, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, double k, List<net.minecraft.block.Block> blocksToForce, List<net.minecraft.block.BlockState> blocksToPlace) - Parameters:
radius- the radius of the spiralheight- the height of the spiralturn- the number of turns that de spiral is going to doworld- the worldpos- the pos of the center of the spiralforce- force the blockpos (will put the block no matter what block is at the current pos)k- the spiral offset in degreesblocksToForce- blocks that the generation will replace if force = falseblocksToPlace- list of blocks that the generation will place randomly
-
generateCircleSpiral
public static void generateCircleSpiral(int large, int radius, int height, int turn, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, List<net.minecraft.block.BlockState> blockState) Generate a spiral that goes around the center point- Parameters:
large- the radius of the blocksradius- the radius of the spiralheight- the height of the spiralturn- the number of turn that the spiral is going to do until it reach the wanted heightworld- the world in wich the spiral is going to spawnpos- the pos of the center of the spiralblockState- the BlockStates that will randomly be placed
-
generateFullSpiral
public static void generateFullSpiral(int height, int turn, int start, int end, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, boolean force, List<net.minecraft.block.BlockState> blockState) this generates a Spiral that fill blocks in a straight line starting from the center to the separated from the radius- Parameters:
start- the start of the filling. To start from the center, start should be equal to 0. A value equal to -radius will generate a double full spiralend- the end of the filling. To finish it at a distance from the center equal to the radius, it should be equal to the radius
-
generateFullSpiral
public static void generateFullSpiral(int radius, int height, int turn, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos, List<net.minecraft.block.BlockState> blockState) -
generateSpiral
public static void generateSpiral(int radius, int height, int turn, List<net.minecraft.block.BlockState> blocks, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos) -
generateSpiral
public static void generateSpiral(int radius, int height, int turn, net.minecraft.block.BlockState block, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos) -
generateSpiral
public static void generateSpiral(int radius, int height, net.minecraft.block.BlockState block, net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.BlockPos pos)
-