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 Type
    Method
    Description
    void
    addBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
    add a set of blocks to the set
    void
    addBlocksToForce(net.minecraft.block.Block block)
    add a block to the set
    Set<net.minecraft.block.Block>
    gives you the Set of every block that can be forced
    boolean
    get if any block can be replaced by any BlockState of this BlockShapeManager
    void
    removeBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
    remove a set of blocks to the set
    void
    removeBlocksToForce(net.minecraft.block.Block block)
    remove a block to the set
    void
    setBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
    sets all the blocks that can be forced in the case force == false
    void
    setForce(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

      void setBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
      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

      void addBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
      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

      void removeBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
      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