Class BlockStateUtil

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

public class BlockStateUtil extends Object
  • Constructor Details

    • BlockStateUtil

      public BlockStateUtil()
  • Method Details

    • convertBlockListToBlockStatePair

      public static void convertBlockListToBlockStatePair(List<BlockList> posList, List<net.minecraft.util.Pair<net.minecraft.block.BlockState,net.minecraft.util.math.BlockPos>> sortedBlockList)
    • convertDividedBlockListToBlockStatePair

      public static void convertDividedBlockListToBlockStatePair(List<Set<BlockList>> posList, List<net.minecraft.util.Pair<net.minecraft.block.BlockState,net.minecraft.util.math.BlockPos>> sortedBlockList)
    • getBlockStatesFromWorld

      public static void getBlockStatesFromWorld(List<Set<net.minecraft.util.math.BlockPos>> posList, Map<net.minecraft.util.math.BlockPos,net.minecraft.block.BlockState> blockStateMap, net.minecraft.world.StructureWorldAccess world)
      method to get all blockStates from the world from a list of BlockPos
      Parameters:
      posList - the list of blockPos that will be used to get the blockStates
      blockStateMap - the map that will be modified
      world - the world where the blockStates will be collected