All Implemented Interfaces:
BlockForceData, BlockListManager

public class FullBlockList extends CompoundBlockList implements BlockForceData
add possibility of having force in compound blockList
  • Constructor Summary

    Constructors
    Constructor
    Description
    FullBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state)
    init a CompoundForceBlockList
    FullBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, boolean force, Set<net.minecraft.block.Block> blocksToForce)
    init a CompoundForceBlockList
    FullBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, @Nullable net.minecraft.nbt.NbtCompound tag)
    init a CompoundForceBlockList
    FullBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, @Nullable net.minecraft.nbt.NbtCompound tag, boolean force, Set<net.minecraft.block.Block> blocksToForce)
    init a CompoundForceBlockList
    FullBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
    init a CompoundForceBlockList
    FullBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean force, Set<net.minecraft.block.Block> blocksToForce)
    init a CompoundForceBlockList
    FullBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, @Nullable net.minecraft.nbt.NbtCompound tag)
    init a CompoundForceBlockList
    FullBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, @Nullable net.minecraft.nbt.NbtCompound tag, boolean force, Set<net.minecraft.block.Block> blocksToForce)
    init a CompoundForceBlockList
  • 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

    Methods inherited from class net.rodofire.easierworldcreator.blockdata.blocklist.basic.CompoundBlockList

    getTag, setTag

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FullBlockList

      public FullBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, boolean force, Set<net.minecraft.block.Block> blocksToForce)
      init a CompoundForceBlockList
      Parameters:
      posList - pos of the blockState
      state - the blockState related to the pos list
      force - set if any block can be replaced by any blockState in this BlockList
      blocksToForce - set all blocks that can be forced by this BlockList
    • FullBlockList

      public FullBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, @Nullable @Nullable net.minecraft.nbt.NbtCompound tag, boolean force, Set<net.minecraft.block.Block> blocksToForce)
      init a CompoundForceBlockList
      Parameters:
      posList - pos of the blockState
      state - the blockState related to the pos list
      tag - the nbt tag that is related to the blockState
      force - set if any block can be replaced by any blockState in this BlockList
      blocksToForce - set all blocks that can be forced by this BlockList
    • FullBlockList

      public FullBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean force, Set<net.minecraft.block.Block> blocksToForce)
      init a CompoundForceBlockList
      Parameters:
      pos - pos of the blockState
      state - the blockState related to the pos list
      force - set if any block can be replaced by any blockState in this BlockList
      blocksToForce - set all blocks that can be forced by this BlockList
    • FullBlockList

      public FullBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, @Nullable @Nullable net.minecraft.nbt.NbtCompound tag, boolean force, Set<net.minecraft.block.Block> blocksToForce)
      init a CompoundForceBlockList
      Parameters:
      pos - pos of the blockState
      state - the blockState related to the pos list
      tag - the nbt tag that is related to the blockState
      force - set if any block can be replaced by any blockState in this BlockList
      blocksToForce - set all blocks that can be forced by this BlockList
    • FullBlockList

      public FullBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state)
      init a CompoundForceBlockList
      Parameters:
      posList - pos of the blockState
      state - the blockState related to the pos list
    • FullBlockList

      public FullBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, @Nullable @Nullable net.minecraft.nbt.NbtCompound tag)
      init a CompoundForceBlockList
      Parameters:
      posList - pos of the blockState
      state - the blockState related to the pos list
      tag - the nbt tag that is related to the blockState
    • FullBlockList

      public FullBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
      init a CompoundForceBlockList
      Parameters:
      pos - pos of the blockState
      state - the blockState related to the pos list
    • FullBlockList

      public FullBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, @Nullable @Nullable net.minecraft.nbt.NbtCompound tag)
      init a CompoundForceBlockList
      Parameters:
      pos - pos of the blockState
      state - the blockState related to the pos list
      tag - the nbt tag that is related to the blockState
  • Method Details

    • getBlocksToForce

      public Set<net.minecraft.block.Block> getBlocksToForce()
      gives you the Set of every block that can be forced
      Specified by:
      getBlocksToForce in interface BlockForceData
      Returns:
      the set of the blocks that can be forced
    • setBlocksToForce

      public void setBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
      sets all the blocks that can be forced in the case force == false
      Specified by:
      setBlocksToForce in interface BlockForceData
      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:
      addBlocksToForce in interface BlockForceData
      Parameters:
      block - the block added
    • addBlocksToForce

      public void addBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
      add a set of blocks to the set
      Specified by:
      addBlocksToForce in interface BlockForceData
      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:
      removeBlocksToForce in interface BlockForceData
      Parameters:
      block - the block removed
    • removeBlocksToForce

      public void removeBlocksToForce(Set<net.minecraft.block.Block> blocksToForce)
      remove a set of blocks to the set
      Specified by:
      removeBlocksToForce in interface BlockForceData
      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:
      isForce in interface BlockForceData
      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:
      setForce in interface BlockForceData
      Parameters:
      force - the boolean used