java.lang.Object
net.rodofire.easierworldcreator.blockdata.blocklist.BlockListUtil

public class BlockListUtil extends Object
  • Constructor Details

    • BlockListUtil

      public BlockListUtil()
  • Method Details

    • addBlockListToList

      public static void addBlockListToList(List<DefaultBlockList> defaultBlockList, net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos posList)
    • addBlockListToList

      public static void addBlockListToList(List<DefaultBlockList> defaultBlockList, DefaultBlockList var)
    • addBlockListToList

      public static void addBlockListToList(List<DefaultBlockList> defaultBlockList, net.minecraft.block.BlockState state, List<net.minecraft.util.math.BlockPos> posList)
    • unDivideBlockList

      public static List<DefaultBlockList> unDivideBlockList(List<Set<DefaultBlockList>> blockList)
    • unDivideForceBlockList

      public static List<ForceBlockList> unDivideForceBlockList(List<Set<ForceBlockList>> blockList)
    • cleanBlockList

      public static List<DefaultBlockList> cleanBlockList(List<DefaultBlockList> defaultBlockLists)
    • combineNBlockList

      @SafeVarargs public static List<DefaultBlockList> combineNBlockList(List<DefaultBlockList>... lists)
      method to combine a number of List<BlockList> superior to 2
      Parameters:
      lists - the list to combine
      Returns:
      a List<BlockList> that correspond to the combined List
    • getSorted

      public static <T extends DefaultBlockList> List<T> getSorted(List<T> blockList, BlockSorter sorter)
      method to sort a BlockList
      Parameters:
      blockList - the blockList that will be sorted
      sorter - the sorter object that will be used to get the sorted BlockPos
      Returns:
      the sorted BlockList
    • combine2BlockList

      public static void combine2BlockList(List<DefaultBlockList> defaultBlockList1, List<DefaultBlockList> defaultBlockList2)
      method to combine 2 List<BlockList>
      Parameters:
      defaultBlockList1 - the first list that will contain the modifications
      defaultBlockList2 - the second list that will get merged