java.lang.Object
net.rodofire.easierworldcreator.blockdata.blocklist.basic.DefaultBlockList
net.rodofire.easierworldcreator.blockdata.blocklist.basic.CompoundBlockList
All Implemented Interfaces:
BlockListManager
Direct Known Subclasses:
FullBlockList

public class CompoundBlockList extends DefaultBlockList
add possibility of having NbtCompound in compound blockList
  • Constructor Details

    • CompoundBlockList

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

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

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

      public CompoundBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, @Nullable @Nullable net.minecraft.nbt.NbtCompound tag)
      init a CompoundBlockList
      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

    • getTag

      @Nullable public @Nullable net.minecraft.nbt.NbtCompound getTag()
      used to get the NBT tag of the specified NBT
      Returns:
      the tag of the BlockList if it exists
    • setTag

      public void setTag(@Nullable @Nullable net.minecraft.nbt.NbtCompound tag)
      allow you to change the tag of the relatedBlock
      Parameters:
      tag - the nbt parameter of the related Block