Class DividedBlockListManager
java.lang.Object
net.rodofire.easierworldcreator.blockdata.blocklist.DividedBlockListManager
During world gen, you can not place all your structure if it is larger than 3x3 chunks.
With this call, the
BlockListManager are stored in a Map<ChunkPos, BlockListManager>.
This allows to place the manager only when allowed.
Use this class if you will place a structure during world gen.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontains(net.minecraft.util.math.ChunkPos pos) Set<net.minecraft.util.math.ChunkPos> getManager(net.minecraft.util.math.ChunkPos pos) getOrdered(BlockSorter sorter) booleanplaceAll(net.minecraft.world.StructureWorldAccess world) booleanplaceAllNDelete(net.minecraft.world.StructureWorldAccess world) voidvoidput(net.minecraft.block.BlockState state, long pos) put(net.minecraft.block.BlockState state, it.unimi.dsi.fastutil.longs.LongArrayList pos) put(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, long pos) put(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, it.unimi.dsi.fastutil.longs.LongArrayList posList) put(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, List<net.minecraft.util.math.BlockPos> posList) put(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, net.minecraft.util.math.BlockPos pos) put(net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos) put(BlockListManager comparator) put(DividedBlockListManager manager) putWithoutVerification(net.minecraft.block.BlockState state, long pos) putWithoutVerification(net.minecraft.block.BlockState state, it.unimi.dsi.fastutil.longs.LongArrayList pos) putWithoutVerification(net.minecraft.block.BlockState state, List<net.minecraft.util.math.BlockPos> pos) putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, long pos) putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, it.unimi.dsi.fastutil.longs.LongArrayList pos) Method will perform verification on only one position, improving performance but might result in a crash, or behave incorrectly in the case where the BlockPos in not in the good chunk.putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, List<net.minecraft.util.math.BlockPos> pos) putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, net.minecraft.util.math.BlockPos pos) putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos) putWithoutVerification(net.minecraft.util.math.ChunkPos pos, BlockList blockList) In a controlled environment, you can use this method which doesn't perform any verification, improving performance. !putWithoutVerification(net.minecraft.util.math.ChunkPos pos, BlockListManager manager) In a controlled environment, you can use this method which doesn't perform any verification, improving performance. !voidputWithoutVerification(BlockListManager manager)
-
Constructor Details
-
DividedBlockListManager
public DividedBlockListManager()
-
-
Method Details
-
put
-
put
-
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.util.math.ChunkPos pos, BlockList blockList) In a controlled environment, you can use this method which doesn't perform any verification, improving performance. ! However, in the case where someBlockPosare not in the providedChunkPosbut in another place, it might result in a crash or create unwanted behavior.- Parameters:
pos- the chunkPos where the BlockPos are.blockList- the BlockList related to the chunkPos that will be put- Returns:
- the resulted comparator.
-
put
-
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.util.math.ChunkPos pos, BlockListManager manager) In a controlled environment, you can use this method which doesn't perform any verification, improving performance. ! However, in the case where someBlockPosare not in the providedChunkPosbut in another place, it might result in a crash or create unwanted behavior.- Parameters:
pos- the chunkPos where the BlockPos are.manager- the manager related to the chunkPos that will be put- Returns:
- the resulted manager.
-
put
public DividedBlockListManager put(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, it.unimi.dsi.fastutil.longs.LongArrayList posList) -
put
public DividedBlockListManager put(net.minecraft.block.BlockState state, it.unimi.dsi.fastutil.longs.LongArrayList pos) -
put
-
put
public DividedBlockListManager put(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, long pos) -
put
public DividedBlockListManager put(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, List<net.minecraft.util.math.BlockPos> posList) -
put
public DividedBlockListManager put(net.minecraft.block.BlockState state, List<net.minecraft.util.math.BlockPos> posList) -
put
public DividedBlockListManager put(net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos) -
put
public DividedBlockListManager put(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, net.minecraft.util.math.BlockPos pos) -
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, it.unimi.dsi.fastutil.longs.LongArrayList pos) Method will perform verification on only one position, improving performance but might result in a crash, or behave incorrectly in the case where the BlockPos in not in the good chunk. Only use this method in a controlled environment. -
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.block.BlockState state, it.unimi.dsi.fastutil.longs.LongArrayList pos) -
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.block.BlockState state, long pos) -
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, long pos) -
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, List<net.minecraft.util.math.BlockPos> pos) -
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.block.BlockState state, List<net.minecraft.util.math.BlockPos> pos) -
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos) -
putWithoutVerification
public DividedBlockListManager putWithoutVerification(net.minecraft.block.BlockState state, net.minecraft.nbt.NbtCompound tag, net.minecraft.util.math.BlockPos pos) -
getManager
-
getAllManager
-
clear
public void clear() -
contains
public boolean contains(net.minecraft.util.math.ChunkPos pos) -
getChunkPos
-
placeAll
public boolean placeAll(net.minecraft.world.StructureWorldAccess world) -
placeAllNDelete
public boolean placeAllNDelete(net.minecraft.world.StructureWorldAccess world) -
getOrdered
-
getOrdered
-
placeJson
-
placeJson
-
putWithoutVerification
-