Package io.papermc.paper.registry.data
Interface PaintingVariantRegistryEntry.Builder
- All Superinterfaces:
PaintingVariantRegistryEntry
,RegistryBuilder<Art>
- Enclosing interface:
PaintingVariantRegistryEntry
@Experimental
@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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.paper.registry.data.PaintingVariantRegistryEntry
PaintingVariantRegistryEntry.Builder
-
Method Summary
Modifier and TypeMethodDescriptionSets the asset id of the painting, which is the location of the sprite to use.Sets the author of the painting.height
(@org.jetbrains.annotations.Range(from=1L, to=16L) int height) Sets the height of the painting in blocks.Sets the title of the painting.width
(@org.jetbrains.annotations.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(@org.jetbrains.annotations.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.
- See Also:
-
height
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder height(@org.jetbrains.annotations.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.
- See Also:
-
title
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder title(@Nullable Component title) Sets the title of the painting.- Parameters:
title
- the title.- Returns:
- this builder instance.
- See Also:
-
author
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder author(@Nullable Component author) Sets the author of the painting.- Parameters:
author
- the author.- Returns:
- this builder instance.
- See Also:
-
assetId
@Contract(value="_ -> this", mutates="this") PaintingVariantRegistryEntry.Builder assetId(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.
- See Also:
-