Interface PaintingVariantRegistryEntry.Builder
- All Superinterfaces:
PaintingVariantRegistryEntry, RegistryBuilder<Art>
- Enclosing interface:
PaintingVariantRegistryEntry
@NonExtendable
public static interface PaintingVariantRegistryEntry.Builder
extends PaintingVariantRegistryEntry, RegistryBuilder<Art>
A mutable builder for the
PaintingVariantRegistryEntry plugins may change in applicable registry events.
The following values are required for each builder:
- Since:
- 1.21.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface PaintingVariantRegistryEntry
PaintingVariantRegistryEntry.Builder -
Method Summary
Modifier and TypeMethodDescriptionassetId(net.kyori.adventure.key.Key assetId) Sets the asset id of the painting, which is the location of the sprite to use.author(@Nullable net.kyori.adventure.text.Component author) Sets the author of the painting.height(@Range(from=1L,to=16L) int height) Sets the height of the painting in blocks.title(@Nullable net.kyori.adventure.text.Component title) Sets the title of the painting.width(@Range(from=1L,to=16L) int width) Sets the width of the painting in blocks.
-
Method Details
-
width
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder width(@Range(from=1L,to=16L) int width) Sets the width of the painting in blocks.- Parameters:
width- the width in blocks- Returns:
- this builder instance
- Since:
- 1.21.3
- See Also:
-
height
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder height(@Range(from=1L,to=16L) int height) Sets the height of the painting in blocks.- Parameters:
height- the height in blocks- Returns:
- this builder instance
- Since:
- 1.21.3
- See Also:
-
title
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder title(@Nullable net.kyori.adventure.text.Component title) Sets the title of the painting.- Parameters:
title- the title- Returns:
- this builder instance
- Since:
- 1.21.3
- See Also:
-
author
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder author(@Nullable net.kyori.adventure.text.Component author) Sets the author of the painting.- Parameters:
author- the author- Returns:
- this builder instance
- Since:
- 1.21.3
- See Also:
-
assetId
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder assetId(net.kyori.adventure.key.Key assetId) Sets the asset id of the painting, which is the location of the sprite to use.- Parameters:
assetId- the asset id- Returns:
- this builder instance
- Since:
- 1.21.3
- See Also:
-