Interface Palette.Mutable<M,MR>
- All Superinterfaces:
Palette<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
Modifier and TypeMethodDescriptiondefault Palette.Mutable<M,
MR> asMutable
(RegistryHolder registry) int
Gets the identifier for the giventype T
from the mapping.boolean
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 Details
-
orAssign
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
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
-