Interface Virtualized<T,R extends Volume>
-
- All Superinterfaces:
Volume
- All Known Subinterfaces:
UnrealizedBiomeVolume<B>,UnrealizedBiomeVolume.Immutable,UnrealizedBiomeVolume.Modifiable<B,MB>,UnrealizedBiomeVolume.Mutable,UnrealizedBiomeVolume.Streamable<B,BU>,UnrealizedBiomeVolume.Unmodifiable<U,BU>,Virtualized.Mutable<T,M,MU>,Virtualized.Streamable<T,B,S>,Virtualized.Unmodifiable<T,U,RU>
public interface Virtualized<T,R extends Volume> extends Volume
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceVirtualized.Immutablestatic interfaceVirtualized.Mutable<T,M extends Virtualized.Mutable<T,M,MU>,MU extends Volume>static interfaceVirtualized.Streamable<T,B extends Virtualized.Streamable<T,B,S>,S extends Volume>static interfaceVirtualized.Unmodifiable<T,U extends Virtualized.Unmodifiable<T,U,RU>,RU extends Volume>Like aBlockVolumeexcept in the case that while the parent volume can potentially be aMutableVolume, this volume returned will not be.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResourceKeyat(int x, int y, int z)Gets theBiomeat the given location.default java.util.Optional<T>at(int x, int y, int z, Registry<T> registry)default ResourceKeyat(Vector3i position)Gets an object representing the biome at the given position.default java.util.Optional<T>at(Vector3i position, Registry<T> registry)Rrealize(Registry<T> registry)
-
-
-
Method Detail
-
at
default ResourceKey at(Vector3i position)
Gets an object representing the biome at the given position.- Parameters:
position- The position- Returns:
- The biome
- Throws:
PositionOutOfBoundsException- If the position is outside of the bounds of the volume
-
at
ResourceKey at(int x, int y, int z)
Gets theBiomeat the given location.- Parameters:
x- The X positiony- The Y positionz- The Z position- Returns:
- The biome
- Throws:
PositionOutOfBoundsException- If the position is outside of the bounds of the volume
-
-