Interface Virtualized.Mutable<T,M extends Virtualized.Mutable<T,M,MU>,MU extends Volume>

All Superinterfaces:
MutableVolume, Virtualized<T,MU>, Virtualized.Streamable<T,M,MU>, Volume
All Known Subinterfaces:
UnrealizedBiomeVolume.Modifiable<B,MB>, UnrealizedBiomeVolume.Mutable
Enclosing interface:
Virtualized<T,R extends Volume>

public static interface Virtualized.Mutable<T,M extends Virtualized.Mutable<T,M,MU>,MU extends Volume> extends Virtualized.Streamable<T,M,MU>, MutableVolume
  • Method Details

    • set

      default boolean set(Vector3i position, Registry<T> registry, T element)
      Sets the Biome at the given position in this volume.
      Parameters:
      position - The position
      element - The element type
      Returns:
      Whether the element change was successful
      Throws:
      PositionOutOfBoundsException - If the position is outside of the bounds of the volume
    • set

      boolean set(int x, int y, int z, ResourceKey resourceKey)
      Sets the Biome at the given position in this volume.
      Parameters:
      x - The X position
      y - The Y position
      z - The Z position
      resourceKey - The resource key
      Returns:
      Whether the biome change was successful
      Throws:
      PositionOutOfBoundsException - If the position is outside of the bounds of the volume