Class BlockListHelper
java.lang.Object
fr.rodofire.ewc.blockdata.blocklist.BlockListHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcombine2BlockList(List<BlockList> defaultBlockList1, List<BlockList> defaultBlockList2) method to combine 2List<BlockList>combineNBlockList(List<BlockList>... lists) method to combine a number ofList<BlockList>superior to 2static BlockListManagerfromJson(net.minecraft.world.level.WorldGenLevel worldAccess, com.google.gson.JsonArray jsonArray, net.minecraft.world.level.ChunkPos chunkPos) static BlockListManagerfromJsonPath(net.minecraft.world.level.WorldGenLevel world, Path path) static BlockListManagergetSorted(List<BlockList> blockList, BlockSorter sorter) method to sort a BlockList
-
Constructor Details
-
BlockListHelper
public BlockListHelper()
-
-
Method Details
-
combineNBlockList
method to combine a number ofList<BlockList>superior to 2- Parameters:
lists- the list to combine- Returns:
- a
List<BlockList>that correspond to the combined List
-
getSorted
method to sort a BlockList- Parameters:
blockList- the blockList that will be sortedsorter- 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 2List<BlockList>- Parameters:
defaultBlockList1- the first list that will contain the modificationsdefaultBlockList2- 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)
-