Class WorldGenUtil

java.lang.Object
net.rodofire.easierworldcreator.worldgenutil.WorldGenUtil

public class WorldGenUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.block.Block>
    addBlockStateListtoBlockList(List<net.minecraft.block.Block> block, List<net.minecraft.block.BlockState> state)
     
    static List<List<net.minecraft.util.math.BlockPos>>
    divideBlockPosIntoChunk(List<net.minecraft.util.math.BlockPos> posList)
    This methods allow you to divide a list of blockPos into chunks.
    static int
    getBlockLayerDepth(List<BlockLayer> layers, int index)
     
    static int
    getBlockLayerDepth(List<BlockLayer> layers, int startindex, int endindex)
     
    static net.minecraft.util.math.BlockPos
    getCoordinatesRotation(float x, float y, float z, double cosx, double sinx, double cosy, double siny, double cosx2, double sinx2, net.minecraft.util.math.BlockPos pos)
     
    static net.minecraft.util.math.BlockPos
    getCoordinatesRotation(float x, float y, float z, int rotationx, int rotationy, int secondrotationx, net.minecraft.util.math.BlockPos pos)
     
    static net.minecraft.util.math.BlockPos
    getCoordinatesRotation(float x, float y, float z, int rotationx, int rotationy, net.minecraft.util.math.BlockPos pos)
     
    static net.minecraft.util.math.Direction
    getDirection(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2)
     
    static float
    getDistance(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2)
     
    static float
    getDistance(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2, float precision)
     
    static float
    getDistanceFromPointToPlane(net.minecraft.util.math.Vec3d normal, net.minecraft.util.math.Vec3d pointOnPlane, net.minecraft.util.math.Vec3d point)
     
    static boolean
    getRandomBoolean(float chance)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static net.minecraft.util.math.Direction
     
    static net.minecraft.util.math.Direction
     
    static int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static net.minecraft.util.math.Direction
     
    static int
    getSecondHeight(float chance, int maxheight)
     
    static int
    getSecondHeight(float chance, int minheight, int maxheight)
     
    static int
    getSign(double a)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static int
    getSign(float a)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static int
    getSign(int a)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static int
     
    static boolean
    isBlockInBlockStateList(net.minecraft.block.Block block, List<net.minecraft.block.BlockState> state)
     
    static boolean
    isBlockStateInBlockStateList(net.minecraft.block.BlockState block, List<net.minecraft.block.BlockState> state)
     
    static boolean
    isChunkGenerated(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.ChunkPos chunkPos)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static boolean
    isPosAChunkFar(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2)
     
    static void
    modifyChunkMap(net.minecraft.util.math.BlockPos pos, Map<net.minecraft.util.math.ChunkPos,Set<net.minecraft.util.math.BlockPos>> chunkMap)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WorldGenUtil

      public WorldGenUtil()
  • Method Details

    • getRandomDirection

      public static net.minecraft.util.math.Direction getRandomDirection()
    • getRandomVerticalDirection

      public static net.minecraft.util.math.Direction getRandomVerticalDirection()
    • getRandomHorizontalDirection

      public static net.minecraft.util.math.Direction getRandomHorizontalDirection()
    • getRandomOpposite

      @Deprecated(forRemoval=true) public static int getRandomOpposite()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRandomBoolean

      @Deprecated(forRemoval=true) public static boolean getRandomBoolean(float chance)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSign

      @Deprecated(forRemoval=true) public static int getSign(int a)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSign

      @Deprecated(forRemoval=true) public static int getSign(double a)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSign

      @Deprecated(forRemoval=true) public static int getSign(float a)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSecondHeight

      public static int getSecondHeight(float chance, int maxheight)
    • getSecondHeight

      public static int getSecondHeight(float chance, int minheight, int maxheight)
    • isBlockInBlockStateList

      public static boolean isBlockInBlockStateList(net.minecraft.block.Block block, List<net.minecraft.block.BlockState> state)
    • isBlockStateInBlockStateList

      public static boolean isBlockStateInBlockStateList(net.minecraft.block.BlockState block, List<net.minecraft.block.BlockState> state)
    • getDistance

      public static float getDistance(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2)
    • getDistance

      public static float getDistance(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2, float precision)
    • isPosAChunkFar

      public static boolean isPosAChunkFar(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2)
    • addBlockStateListtoBlockList

      public static List<net.minecraft.block.Block> addBlockStateListtoBlockList(List<net.minecraft.block.Block> block, List<net.minecraft.block.BlockState> state)
    • getDistanceFromPointToPlane

      public static float getDistanceFromPointToPlane(net.minecraft.util.math.Vec3d normal, net.minecraft.util.math.Vec3d pointOnPlane, net.minecraft.util.math.Vec3d point)
    • getTotalBlockLayerDepth

      public static int getTotalBlockLayerDepth(List<BlockLayer> layers)
    • getBlockLayerDepth

      public static int getBlockLayerDepth(List<BlockLayer> layers, int index)
    • getBlockLayerDepth

      public static int getBlockLayerDepth(List<BlockLayer> layers, int startindex, int endindex)
    • getDirection

      public static net.minecraft.util.math.Direction getDirection(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2)
    • getCoordinatesRotation

      public static net.minecraft.util.math.BlockPos getCoordinatesRotation(float x, float y, float z, int rotationx, int rotationy, net.minecraft.util.math.BlockPos pos)
    • getCoordinatesRotation

      public static net.minecraft.util.math.BlockPos getCoordinatesRotation(float x, float y, float z, int rotationx, int rotationy, int secondrotationx, net.minecraft.util.math.BlockPos pos)
    • getCoordinatesRotation

      public static net.minecraft.util.math.BlockPos getCoordinatesRotation(float x, float y, float z, double cosx, double sinx, double cosy, double siny, double cosx2, double sinx2, net.minecraft.util.math.BlockPos pos)
    • divideBlockPosIntoChunk

      public static List<List<net.minecraft.util.math.BlockPos>> divideBlockPosIntoChunk(List<net.minecraft.util.math.BlockPos> posList)
      This methods allow you to divide a list of blockPos into chunks. It is used later to put the blocks
      Parameters:
      posList -
      Returns:
    • modifyChunkMap

      public static void modifyChunkMap(net.minecraft.util.math.BlockPos pos, Map<net.minecraft.util.math.ChunkPos,Set<net.minecraft.util.math.BlockPos>> chunkMap)
    • isChunkGenerated

      @Deprecated(forRemoval=true) public static boolean isChunkGenerated(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.ChunkPos chunkPos)
      Deprecated, for removal: This API element is subject to removal in a future version.