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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.virtual.Virtualized
Virtualized.Immutable, Virtualized.Mutable<T,M extends Virtualized.Mutable<T,M,MU>,MU extends Volume>, Virtualized.Streamable<T,B extends Virtualized.Streamable<T,B,S>,S extends Volume>, Virtualized.Unmodifiable<T,U extends Virtualized.Unmodifiable<T,U,RU>,RU extends Volume>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
set(int x, int y, int z, ResourceKey resourceKey)
Sets theBiome
at the given position in this volume.default boolean
set(Vector3i position, Registry<T> registry, T element)
Sets theBiome
at the given position in this volume.-
Methods inherited from interface org.spongepowered.api.world.volume.virtual.Virtualized
at, at, at, at, realize
-
Methods inherited from interface org.spongepowered.api.world.volume.virtual.Virtualized.Streamable
elementStream
-
-
-
-
Method Detail
-
set
default boolean set(Vector3i position, Registry<T> registry, T element)
Sets theBiome
at the given position in this volume.- Parameters:
position
- The positionelement
- 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 theBiome
at the given position in this volume.- Parameters:
x
- The X positiony
- The Y positionz
- The Z positionresourceKey
- The resource key- Returns:
- Whether the biome change was successful
- Throws:
PositionOutOfBoundsException
- If the position is outside of the bounds of the volume
-
-