Class ForceBlockList
java.lang.Object
net.rodofire.easierworldcreator.blockdata.blocklist.basic.DefaultBlockList
net.rodofire.easierworldcreator.blockdata.blocklist.basic.ForceBlockList
- All Implemented Interfaces:
BlockForceData,BlockListManager
BlockList class that has force parameters
-
Constructor Summary
ConstructorsConstructorDescriptionForceBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, boolean force) init a ForceBlockListForceBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, boolean force, Set<net.minecraft.block.Block> blocksToForce) init a ForceBlockListForceBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, Set<net.minecraft.block.Block> blocksToForce) init a ForceBlockListForceBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean force) init a ForceBlockListForceBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean force, Set<net.minecraft.block.Block> blocksToForce) init a ForceBlockListForceBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, Set<net.minecraft.block.Block> blocksToForce) init a ForceBlockList -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlocksToForce(Set<net.minecraft.block.Block> blocksToForce) add a set of blocks to the setvoidaddBlocksToForce(net.minecraft.block.Block block) add a block to the setSet<net.minecraft.block.Block> gives you the Set of every block that can be forcedbooleanisForce()get if any block can be replaced by any BlockState of this BlockShapeManagervoidremoveBlocksToForce(Set<net.minecraft.block.Block> blocksToForce) remove a set of blocks to the setvoidremoveBlocksToForce(net.minecraft.block.Block block) remove a block to the setvoidsetBlocksToForce(Set<net.minecraft.block.Block> blocksToForce) sets all the blocks that can be forced in the case force == falsevoidsetForce(boolean force) sets if any block can be replaced by any BlockState of this BlockShapeManagerMethods inherited from class net.rodofire.easierworldcreator.blockdata.blocklist.basic.DefaultBlockList
addBlockPos, addBlockPos, getBlockState, getFirstPos, getLastPos, getPos, getPosList, getRandomPos, getRandomPos, removeBlockPos, removeBlockPos, replaceBlockPos, setBlockState, setPosList, size, toString
-
Constructor Details
-
ForceBlockList
public ForceBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, boolean force, Set<net.minecraft.block.Block> blocksToForce) init a ForceBlockList- Parameters:
posList- pos of the blockStatestate- the blockState related to the pos listforce- set if any block can be replaced by any blockState in this BlockListblocksToForce- set all blocks that can be forced by this BlockList
-
ForceBlockList
public ForceBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, boolean force) init a ForceBlockList- Parameters:
posList- pos of the blockStatestate- the blockState related to the pos listforce- set if any block can be replaced by any blockState in this BlockList
-
ForceBlockList
public ForceBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, Set<net.minecraft.block.Block> blocksToForce) init a ForceBlockList- Parameters:
posList- pos of the blockStatestate- the blockState related to the pos listblocksToForce- set all blocks that can be forced by this BlockList
-
ForceBlockList
public ForceBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean force, Set<net.minecraft.block.Block> blocksToForce) init a ForceBlockList- Parameters:
pos- pos of the blockStatestate- the blockState related to the pos listforce- set if any block can be replaced by any blockState in this BlockListblocksToForce- set all blocks that can be forced by this BlockList
-
ForceBlockList
public ForceBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean force) init a ForceBlockList- Parameters:
pos- pos of the blockStatestate- the blockState related to the pos listforce- set if any block can be replaced by any blockState in this BlockList
-
ForceBlockList
public ForceBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, Set<net.minecraft.block.Block> blocksToForce) init a ForceBlockList- Parameters:
pos- pos of the blockStatestate- the blockState related to the pos listblocksToForce- set all blocks that can be forced by this BlockList
-
-
Method Details
-
getBlocksToForce
gives you the Set of every block that can be forced- Specified by:
getBlocksToForcein interfaceBlockForceData- Returns:
- the set of the blocks that can be forced
-
setBlocksToForce
sets all the blocks that can be forced in the case force == false- Specified by:
setBlocksToForcein interfaceBlockForceData- Parameters:
blocksToForce- the set of blocks that can be forced
-
addBlocksToForce
public void addBlocksToForce(net.minecraft.block.Block block) add a block to the set- Specified by:
addBlocksToForcein interfaceBlockForceData- Parameters:
block- the block added
-
addBlocksToForce
add a set of blocks to the set- Specified by:
addBlocksToForcein interfaceBlockForceData- Parameters:
blocksToForce- the set that will be added
-
removeBlocksToForce
public void removeBlocksToForce(net.minecraft.block.Block block) remove a block to the set- Specified by:
removeBlocksToForcein interfaceBlockForceData- Parameters:
block- the block removed
-
removeBlocksToForce
remove a set of blocks to the set- Specified by:
removeBlocksToForcein interfaceBlockForceData- Parameters:
blocksToForce- the set that will be removed
-
isForce
public boolean isForce()get if any block can be replaced by any BlockState of this BlockShapeManager- Specified by:
isForcein interfaceBlockForceData- Returns:
- the boolean related to it
-
setForce
public void setForce(boolean force) sets if any block can be replaced by any BlockState of this BlockShapeManager- Specified by:
setForcein interfaceBlockForceData- Parameters:
force- the boolean used
-