Class BlockStateUtil
java.lang.Object
net.rodofire.easierworldcreator.util.BlockStateUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetBlockStatesFromWorld(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 BlockPosstatic OrderedBlockListManagergetBlockStatesFromWorld(List<Set<net.minecraft.util.math.BlockPos>> posList, net.minecraft.world.StructureWorldAccess world) static BlockListManagergetCompoundBlockStatesFromWorld(List<Set<net.minecraft.util.math.BlockPos>> posList, net.minecraft.world.StructureWorldAccess world) static net.minecraft.block.BlockparseBlock(net.minecraft.world.StructureWorldAccess world, String blockString) static net.minecraft.block.BlockStateparseBlockState(net.minecraft.world.StructureWorldAccess world, String stateString) method used to convertStringto BlockState
-
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 convertStringto BlockState- Parameters:
world- used to get the registry entrystateString- theStringrelated to theBlockState- Returns:
- the
BlockStateconverted
-
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 blockStatesblockStateMap- the map that will be modifiedworld- the world where the blockStates will be collected
-
parseBlock
public static net.minecraft.block.Block parseBlock(net.minecraft.world.StructureWorldAccess world, String blockString) -
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)
-