Class AbstractBlockShapeRotation
java.lang.Object
net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapeBase
net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapePlaceType
net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapeLayer
net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapeRotation
- Direct Known Subclasses:
AbstractBlockShape
-
Nested Class Summary
Nested classes/interfaces inherited from class net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapeLayer
AbstractBlockShapeLayer.LayersTypeNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapePlaceType
AbstractBlockShapePlaceType.LayerPlaceNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapeBase
AbstractBlockShapeBase.PlaceMoment -
Field Summary
Fields inherited from class net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapeBase
biggerThanChunk, THREAD_COUNT -
Constructor Summary
ConstructorsConstructorDescriptionAbstractBlockShapeRotation(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, @NotNull AbstractBlockShapeBase.PlaceMoment placeMoment) init the ShapeRotationAbstractBlockShapeRotation(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, @NotNull AbstractBlockShapeBase.PlaceMoment placeMoment, AbstractBlockShapePlaceType.LayerPlace layerPlace, AbstractBlockShapeLayer.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.shape.block.instanciator.AbstractBlockShapeLayer
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.shape.block.instanciator.AbstractBlockShapePlaceType
getBlockToPlace, getBlockToPlace, getLayerPlace, getNoise, placeBlocks, placeBlocks, placeBlocksWithVerification, placeBlocksWithVerification, placeBlocksWithVerification, setLayerPlace, setNoise, verifyBlocks, verifyBlocks, verifyBlocksMethods inherited from class net.rodofire.easierworldcreator.shape.block.instanciator.AbstractBlockShapeBase
addPosOffset, getBlockLayer, getPlaceMoment, getPos, getWorld, setBlockLayer, setPlaceMoment, setPos
-
Constructor Details
-
AbstractBlockShapeRotation
public AbstractBlockShapeRotation(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, @NotNull @NotNull AbstractBlockShapeBase.PlaceMoment placeMoment, AbstractBlockShapePlaceType.LayerPlace layerPlace, AbstractBlockShapeLayer.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
-
AbstractBlockShapeRotation
public AbstractBlockShapeRotation(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, @NotNull @NotNull AbstractBlockShapeBase.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
-