Class WorldGenUtil

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

public class WorldGenUtil extends Object
  • 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()
    • 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 Set<net.minecraft.block.Block> addBlockStateListToBlockList(Set<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<Set<net.minecraft.util.math.BlockPos>> divideBlockPosIntoChunk(List<net.minecraft.util.math.BlockPos> posList)
      This method allows you to divide a list of blockPos into chunks. It is used later to put the blocks
      Parameters:
      posList - the list of BlockPos that will be divided
      Returns:
      a list of set of BlockPos that represents a list of chunks
    • modifyChunkMap

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