Interface Palette.Mutable<M,MR>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.world.schematic.Palette
Palette.Immutable<I,IR>, Palette.Mutable<M,MR>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Palette.Mutable<M,MR>
asMutable(RegistryHolder registry)
int
orAssign(M type)
Gets the identifier for the giventype T
from the mapping.boolean
remove(M type)
Removes the giventype T
from the mapping.-
Methods inherited from interface org.spongepowered.api.world.schematic.Palette
asImmutable, get, get, get, highestId, stream, streamWithIds, type
-
-
-
-
Method Detail
-
orAssign
int orAssign(M type)
Gets the identifier for the giventype T
from the mapping. If thetype T
is not yet registered in the mapping then it is registered and given the next available identifier.- Parameters:
type
- The type- Returns:
- The identifier
-
remove
boolean remove(M type)
Removes the giventype T
from the mapping.Note that if this palette is considered a global palette, removal is not supported.
- Parameters:
type
- The type to remove- Returns:
- If the type existed in the mapping
-
asMutable
default Palette.Mutable<M,MR> asMutable(RegistryHolder registry)
-
-