Class ChunkPosManager
java.lang.Object
net.rodofire.easierworldcreator.world.chunk.ChunkPosManager
-
Constructor Summary
ConstructorsConstructorDescriptionChunkPosManager(@NotNull net.minecraft.world.StructureWorldAccess world) ChunkPosManager(@NotNull net.minecraft.world.StructureWorldAccess world, Set<net.minecraft.util.math.ChunkPos> toTest) ChunkPosManager(@NotNull net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.ChunkPos toTest) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanGenerate(Set<net.minecraft.util.math.ChunkPos> chunks, int xOffset, int zOffset) method to know if a set of chunk can be placedbooleancontainsChunk(net.minecraft.util.math.ChunkPos chunkPos) booleanput(net.minecraft.util.math.ChunkPos chunkPos) Method to avoid chain call.void
-
Constructor Details
-
ChunkPosManager
public ChunkPosManager(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world) -
ChunkPosManager
public ChunkPosManager(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, Set<net.minecraft.util.math.ChunkPos> toTest) -
ChunkPosManager
public ChunkPosManager(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, net.minecraft.util.math.ChunkPos toTest)
-
-
Method Details
-
put
public boolean put(net.minecraft.util.math.ChunkPos chunkPos) Method to avoid chain call. If a chunk is not generated, it is added to the non-generated chunks. If the chunk is generated and can be placed, it will be added- Parameters:
chunkPos- the pos to put- Returns:
- true, it can accept world-gen blocks, false if not
-
putAll
-
containsChunk
public boolean containsChunk(net.minecraft.util.math.ChunkPos chunkPos) -
canGenerate
method to know if a set of chunk can be placed- Parameters:
chunks- the set to be verified- Returns:
- true if every chunk can be placed, false if not
-