Class ScopedDensityBuffer

java.lang.Object
net.minecraft.world.level.levelgen.densityfunction.DensityBuffer
net.minecraft.world.level.levelgen.densityfunction.ScopedDensityBuffer
All Implemented Interfaces:
AutoCloseable

public class ScopedDensityBuffer extends DensityBuffer implements AutoCloseable
  • Field Details

    • arena

      private final DensityBufferArena arena
    • age

      private int age
    • closed

      private boolean closed
  • Constructor Details

    • ScopedDensityBuffer

      ScopedDensityBuffer(DensityBufferArena arena, int capacity, int size)
  • Method Details

    • restore

      void restore(int size)
    • incrementAge

      int incrementAge()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable