Interface BlockForceData
- All Known Implementing Classes:
ForceBlockList,FullBlockList
public interface BlockForceData
interface for manipulating how blocks can be forced or not
-
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 BlockShapeManager
-
Method Details
-
getBlocksToForce
Set<net.minecraft.block.Block> getBlocksToForce()gives you the Set of every block that can be forced- Returns:
- the set of the blocks that can be forced
-
setBlocksToForce
sets all the blocks that can be forced in the case force == false- Parameters:
blocksToForce- the set of blocks that can be forced
-
addBlocksToForce
void addBlocksToForce(net.minecraft.block.Block block) add a block to the set- Parameters:
block- the block added
-
addBlocksToForce
add a set of blocks to the set- Parameters:
blocksToForce- the set that will be added
-
removeBlocksToForce
void removeBlocksToForce(net.minecraft.block.Block block) remove a block to the set- Parameters:
block- the block removed
-
removeBlocksToForce
remove a set of blocks to the set- Parameters:
blocksToForce- the set that will be removed
-
isForce
boolean isForce()get if any block can be replaced by any BlockState of this BlockShapeManager- Returns:
- the boolean related to it
-
setForce
void setForce(boolean force) sets if any block can be replaced by any BlockState of this BlockShapeManager- Parameters:
force- the boolean used
-