Class ChunkPosManager

java.lang.Object
net.rodofire.easierworldcreator.world.chunk.ChunkPosManager

public class ChunkPosManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChunkPosManager(@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 Type
    Method
    Description
    boolean
    canGenerate(Set<net.minecraft.util.math.ChunkPos> chunks, int xOffset, int zOffset)
    method to know if a set of chunk can be placed
    boolean
    containsChunk(net.minecraft.util.math.ChunkPos chunkPos)
     
    boolean
    put(net.minecraft.util.math.ChunkPos chunkPos)
    Method to avoid chain call.
    void
    putAll(Set<net.minecraft.util.math.ChunkPos> chunks)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void putAll(Set<net.minecraft.util.math.ChunkPos> chunks)
    • containsChunk

      public boolean containsChunk(net.minecraft.util.math.ChunkPos chunkPos)
    • canGenerate

      public boolean canGenerate(Set<net.minecraft.util.math.ChunkPos> chunks, int xOffset, int zOffset)
      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