Class BlockListUtil
java.lang.Object
net.rodofire.easierworldcreator.blockdata.blocklist.BlockListUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBlockListToList(List<DefaultBlockList> defaultBlockList, net.minecraft.block.BlockState state, List<net.minecraft.util.math.BlockPos> posList) static voidaddBlockListToList(List<DefaultBlockList> defaultBlockList, net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos posList) static voidaddBlockListToList(List<DefaultBlockList> defaultBlockList, DefaultBlockList var) static List<DefaultBlockList> cleanBlockList(List<DefaultBlockList> defaultBlockLists) static voidcombine2BlockList(List<DefaultBlockList> defaultBlockList1, List<DefaultBlockList> defaultBlockList2) method to combine 2List<BlockList>static List<DefaultBlockList> combineNBlockList(List<DefaultBlockList>... lists) method to combine a number ofList<BlockList>superior to 2static <T extends DefaultBlockList>
List<T> getSorted(List<T> blockList, BlockSorter sorter) method to sort a BlockListstatic List<DefaultBlockList> unDivideBlockList(List<Set<DefaultBlockList>> blockList) static List<ForceBlockList> unDivideForceBlockList(List<Set<ForceBlockList>> blockList)
-
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
-
unDivideForceBlockList
-
cleanBlockList
-
combineNBlockList
@SafeVarargs public static List<DefaultBlockList> combineNBlockList(List<DefaultBlockList>... lists) 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<DefaultBlockList> defaultBlockList1, List<DefaultBlockList> defaultBlockList2) method to combine 2List<BlockList>- Parameters:
defaultBlockList1- the first list that will contain the modificationsdefaultBlockList2- the second list that will get merged
-