Class ShapeRotation
java.lang.Object
net.rodofire.easierworldcreator.shapeutil.ShapeBase
net.rodofire.easierworldcreator.shapeutil.ShapePlaceType
net.rodofire.easierworldcreator.shapeutil.ShapeLayer
net.rodofire.easierworldcreator.shapeutil.ShapeRotation
- Direct Known Subclasses:
Shape
-
Nested Class Summary
Nested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.ShapeLayer
ShapeLayer.LayersTypeNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.ShapePlaceType
ShapePlaceType.LayerPlace, ShapePlaceType.PlaceTypeNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.ShapeBase
ShapeBase.PlaceMoment -
Field Summary
Fields inherited from class net.rodofire.easierworldcreator.shapeutil.ShapeBase
biggerThanChunk, THREAD_COUNT -
Constructor Summary
ConstructorsConstructorDescriptionShapeRotation(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, @NotNull ShapeBase.PlaceMoment placeMoment) init the ShapeRotationShapeRotation(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, @NotNull ShapeBase.PlaceMoment placeMoment, ShapePlaceType.LayerPlace layerPlace, ShapeLayer.LayersType layersType, int yRotation, int zRotation, int secondYRotation) init the ShapeRotation -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSecondZRotation(int secondYRotation) voidaddYRotation(int yRotation) voidaddZRotation(int YRotation) net.minecraft.util.math.BlockPosgetCoordinatesRotation(float x, float y, float z, net.minecraft.util.math.BlockPos centerPos) method to get the rotation depending on the different rotations determined beforenet.minecraft.util.math.BlockPosgetCoordinatesRotation(net.minecraft.util.math.Vec3d pos, net.minecraft.util.math.BlockPos centerPos) method to get the rotation of Vec3d depending on the different rotations determined beforeList<net.minecraft.util.math.BlockPos> getCoordinatesRotationList(List<net.minecraft.util.math.Vec3d> posList, net.minecraft.util.math.BlockPos centerPos) method to get the rotation of a list depending on the different rotations determined beforeintintintvoidsetSecondYRotation(int secondYRotation) voidsetYRotation(int yRotation) voidsetZRotation(int yRotation) Methods inherited from class net.rodofire.easierworldcreator.shapeutil.ShapeLayer
getDirectionalLayerDirection, getInnerCylindricalBlocks, getInnerRadialBlocks, getLayers, getLayersType, getLayersWithVerification, getOuterCylindricalBlocks, getOuterRadialBlocks, getRadialCenterPos, getRadialCenterVec3d, getVerifiedInnerCylindricalBlocks, getVerifiedInnerRadialBlocks, getVerifiedOuterCylindricalBlocks, getVerifiedOuterRadialBlocks, placeFirstSurfaceBlockLayers, placeInnerCylindricalBlocks, placeInnerRadialBlocks, placeLayers, placeOuterCylindricalBlocks, placeOuterRadialBlocks, placeSurfaceBlockLayer, setDirectionalLayerDirection, setLayerDirection, setLayersType, setRadialCenterPos, setRadialCenterVec3dMethods inherited from class net.rodofire.easierworldcreator.shapeutil.ShapePlaceType
getBlockToPlace, getBlockToPlace, getLayerPlace, getNoise, getPlaceType, placeBlocks, placeBlocks, placeBlocksWithVerification, placeBlocksWithVerification, placeBlocksWithVerification, setLayerPlace, setNoise, setPlaceType, verifyBlocks, verifyBlocks, verifyBlocksMethods inherited from class net.rodofire.easierworldcreator.shapeutil.ShapeBase
addBlockLayer, addBlockLayers, addPosOffset, getBlockLayer, getBlockLayers, getPlaceMoment, getPos, getWorld, removeBlockLayer, removeBlockLayer, removeBlockLayer, setBlockLayers, setBlockLayers, setPlaceMoment, setPos
-
Constructor Details
-
ShapeRotation
public ShapeRotation(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, @NotNull @NotNull ShapeBase.PlaceMoment placeMoment, ShapePlaceType.LayerPlace layerPlace, ShapeLayer.LayersType layersType, int yRotation, int zRotation, int secondYRotation) init the ShapeRotation- Parameters:
world- the world the spiral will spawn inpos- the center of the spiralplaceMoment- define the moment where the shape will be placedlayerPlace- how the@BlockStatesinside of aBlockLayerwill be placedlayersType- how the Layers will be placedyRotation- first rotation around the y-axiszRotation- second rotation around the z-axissecondYRotation- last rotation around the y-axis
-
ShapeRotation
public ShapeRotation(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, @NotNull @NotNull ShapeBase.PlaceMoment placeMoment) init the ShapeRotation- Parameters:
world- the world of the shapepos- the pos of the shape (usually the center of the structure)placeMoment- define the moment where the shape will be placed
-
-
Method Details
-
setYRotation
public void setYRotation(int yRotation) -
getYRotation
public int getYRotation() -
getZRotation
public int getZRotation() -
setZRotation
public void setZRotation(int yRotation) -
getSecondYRotation
public int getSecondYRotation() -
setSecondYRotation
public void setSecondYRotation(int secondYRotation) -
addZRotation
public void addZRotation(int YRotation) -
addYRotation
public void addYRotation(int yRotation) -
addSecondZRotation
public void addSecondZRotation(int secondYRotation) -
getCoordinatesRotation
public net.minecraft.util.math.BlockPos getCoordinatesRotation(net.minecraft.util.math.Vec3d pos, net.minecraft.util.math.BlockPos centerPos) method to get the rotation of Vec3d depending on the different rotations determined before- Parameters:
pos- BlockPos that has to be rotatedcenterPos- The center of the rotation- Returns:
- a list of BlockPos related to the rotation
-
getCoordinatesRotation
public net.minecraft.util.math.BlockPos getCoordinatesRotation(float x, float y, float z, net.minecraft.util.math.BlockPos centerPos) method to get the rotation depending on the different rotations determined before- Parameters:
x- the distance on the x-axis from the BlockPosy- the distance on the y-axis from the BlockPosz- the distance on the z-axis from the BlockPoscenterPos- the center of the rotation- Returns:
- the BlockPos related to the rotation
-
getCoordinatesRotationList
public List<net.minecraft.util.math.BlockPos> getCoordinatesRotationList(List<net.minecraft.util.math.Vec3d> posList, net.minecraft.util.math.BlockPos centerPos) method to get the rotation of a list depending on the different rotations determined before- Parameters:
posList- the list of coordinates that has to be rotatedcenterPos- The center of the rotation- Returns:
- a list of BlockPos related to the rotation
-