Class TorusGen
java.lang.Object
net.rodofire.easierworldcreator.shapeutil.Shape
net.rodofire.easierworldcreator.shapeutil.FillableShape
net.rodofire.easierworldcreator.shapegen.TorusGen
allow you to generate torus shape
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumchange the outside filling of the torus it is different from the Filling Type the torus type changes the exterior filling while the other one change the interior filling typeNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.FillableShape
FillableShape.TypeNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.Shape
Shape.LayerPlace, Shape.LayersType, Shape.PlaceType -
Constructor Summary
ConstructorsConstructorDescriptionTorusGen(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, int innerRadius, int outerRadius) TorusGen(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation, int innerRadius, int outerRadius) -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.util.math.BlockPos> generates an empty torus the shape with the torus might be different from the full one if you're using custom torus fillingList<net.minecraft.util.math.BlockPos> generates a full tore / tore with custom filling the shape with the torus might be different from the empty one if you're using custom torus fillingList<net.minecraft.util.math.BlockPos> net.minecraft.util.math.Vec3dgetEllipsoidalToreCoordinates(int u, int v) floatdoublegetInnerRadius(int angle) intintdoublegetOuterRadius(int angle) intintList<net.minecraft.util.math.Vec3d> getVec3d()floatvoidsetHorizontalTorus(float horizontalTorus) voidsetInnerRadiusx(int innerRadiusx) voidsetInnerRadiusz(int innerRadiusz) voidsetOuterRadiusx(int outerRadiusx) voidsetOuterRadiusz(int outerRadiusz) voidsetTorusType(TorusGen.TorusType torusType) voidsetVerticalTorus(float verticalTorus) Methods inherited from class net.rodofire.easierworldcreator.shapeutil.FillableShape
getCustomFill, getFillingType, setCustomFill, setFill, setFillingTypeMethods inherited from class net.rodofire.easierworldcreator.shapeutil.Shape
addBlockLayer, addBlockLayers, addBlocksToForce, addBlocksToForce, addPosOffset, addSecondxrotation, addXrotation, addYrotation, getBlockLayer, getBlockLayers, getBlocksToForce, getCoordinatesRotation, getCoordinatesRotation, getCoordinatesRotationList, getForce, getGenTime, getLayerPlace, getLayersType, getNoise, getPlaceType, getPos, getRotations, getSecondXrotation, getWorld, getXrotation, getYrotation, place, placeBlocks, placeBlocks, placeBlocksWithVerification, placeBlocksWithVerification, placeCylindricalBlocks, placeFirstSurfaceBlockLayers, placeLayers, placeRadialBlocks, placeSurfaceBlockLayers, removeBlockLayer, removeBlockLayer, removeBlockLayer, setBlockLayers, setBlockLayers, setBlocksToForce, setForce, setLayerDirection, setLayerPlace, setLayersType, setNoise, setPlaceType, setPos, setSecondxrotation, setXrotation, setYrotation, verifyBlocks
-
Constructor Details
-
TorusGen
public TorusGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, int innerRadius, int outerRadius) -
TorusGen
public TorusGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation, int innerRadius, int outerRadius)
-
-
Method Details
-
getInnerRadiusx
public int getInnerRadiusx() -
setInnerRadiusx
public void setInnerRadiusx(int innerRadiusx) -
getOuterRadiusx
public int getOuterRadiusx() -
setOuterRadiusx
public void setOuterRadiusx(int outerRadiusx) -
getInnerRadiusz
public int getInnerRadiusz() -
setInnerRadiusz
public void setInnerRadiusz(int innerRadiusz) -
getOuterRadiusz
public int getOuterRadiusz() -
setOuterRadiusz
public void setOuterRadiusz(int outerRadiusz) -
getTorusType
-
setTorusType
-
getVerticalTorus
public float getVerticalTorus() -
setVerticalTorus
public void setVerticalTorus(float verticalTorus) -
getHorizontalTorus
public float getHorizontalTorus() -
setHorizontalTorus
public void setHorizontalTorus(float horizontalTorus) -
getBlockPos
- Specified by:
getBlockPosin classShape
-
getVec3d
-
generateFullTore
generates a full tore / tore with custom filling the shape with the torus might be different from the empty one if you're using custom torus filling- Returns:
- a list of every blockPos
-
generateEmptyTore
generates an empty torus the shape with the torus might be different from the full one if you're using custom torus filling- Returns:
- a list of every blockPos
-
getEllipsoidalToreCoordinates
public net.minecraft.util.math.Vec3d getEllipsoidalToreCoordinates(int u, int v) -
getInnerRadius
public double getInnerRadius(int angle) -
getOuterRadius
public double getOuterRadius(int angle)
-