Interface MapDecorations.Builder
- All Superinterfaces:
DataComponentBuilder<MapDecorations>
- Enclosing interface:
MapDecorations
@NonExtendable
@Experimental
public static interface MapDecorations.Builder
extends DataComponentBuilder<MapDecorations>
Builder for
MapDecorations
.-
Method Summary
Modifier and TypeMethodDescriptionput
(String id, MapDecorations.DecorationEntry entry) Puts the decoration with the given id in this builder.putAll
(Map<String, MapDecorations.DecorationEntry> entries) Puts all the decoration with the given id in this builder.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
put
@Contract(value="_, _ -> this", mutates="this") MapDecorations.Builder put(String id, MapDecorations.DecorationEntry entry) Puts the decoration with the given id in this builder.- Parameters:
id
- identry
- decoration- Returns:
- the builder for chaining
- See Also:
-
putAll
@Contract(value="_ -> this", mutates="this") MapDecorations.Builder putAll(Map<String, MapDecorations.DecorationEntry> entries) Puts all the decoration with the given id in this builder.- Parameters:
entries
- decorations- Returns:
- the builder for chaining
- See Also:
-