Class BlockStateUtil

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

public class BlockStateUtil extends Object
  • Constructor Details

    • BlockStateUtil

      public BlockStateUtil()
  • Method Details

    • parseBlockState

      public static net.minecraft.block.BlockState parseBlockState(net.minecraft.world.StructureWorldAccess world, String stateString)
      method used to convert String to BlockState
      Parameters:
      world - used to get the registry entry
      stateString - the String related to theBlockState
      Returns:
      the BlockState converted
    • 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
    • getCompoundBlockStatesFromWorld

      public static BlockListManager getCompoundBlockStatesFromWorld(List<Set<net.minecraft.util.math.BlockPos>> posList, net.minecraft.world.StructureWorldAccess world)
    • getBlockStatesFromWorld

      public static OrderedBlockListManager getBlockStatesFromWorld(List<Set<net.minecraft.util.math.BlockPos>> posList, net.minecraft.world.StructureWorldAccess world)