Class CompoundBlockList
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
add possibility of having NbtCompound in compound blockList
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state) init a CompoundBlockListCompoundBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state, @Nullable net.minecraft.nbt.NbtCompound tag) init a CompoundBlockListCompoundBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state) init a CompoundBlockListCompoundBlockList(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, @Nullable net.minecraft.nbt.NbtCompound tag) init a CompoundBlockList -
Method Summary
Methods 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
-
CompoundBlockList
public CompoundBlockList(List<net.minecraft.util.math.BlockPos> posList, net.minecraft.block.BlockState state) init a CompoundBlockList- Parameters:
posList- pos of the blockStatestate- 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 blockStatestate- the blockState related to the pos listtag- 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 blockStatestate- 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 blockStatestate- the blockState related to the pos listtag- 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
-