Class BlockListHelper

java.lang.Object
fr.rodofire.ewc.blockdata.blocklist.BlockListHelper

public class BlockListHelper extends Object
  • Constructor Details

    • BlockListHelper

      public BlockListHelper()
  • Method Details

    • combineNBlockList

      @SafeVarargs public static List<BlockList> combineNBlockList(List<BlockList>... 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 BlockListManager getSorted(List<BlockList> 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<BlockList> defaultBlockList1, List<BlockList> 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
    • fromJsonPath

      public static BlockListManager fromJsonPath(net.minecraft.world.level.WorldGenLevel world, Path path)
    • fromJson

      public static BlockListManager fromJson(net.minecraft.world.level.WorldGenLevel worldAccess, com.google.gson.JsonArray jsonArray, net.minecraft.world.level.ChunkPos chunkPos)