Interface ResolvableProfile.Builder
- All Superinterfaces:
DataComponentBuilder<ResolvableProfile>
- Enclosing interface:
ResolvableProfile
@Experimental
@NonExtendable
public static interface ResolvableProfile.Builder
extends DataComponentBuilder<ResolvableProfile>
Builder for
ResolvableProfile
.-
Method Summary
Modifier and TypeMethodDescriptionaddProperties
(Collection<ProfileProperty> properties) Adds properties to this profile.addProperty
(ProfileProperty property) Adds a property to this profile.Sets the name for this profile.Sets the UUID for this profile.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
name
@Contract(value="_ -> this", mutates="this") ResolvableProfile.Builder name(@Pattern("^[!-~]{0,16}$") @Nullable String name) Sets the name for this profile. Must be 16-or-less characters and not contain invalid characters.- Parameters:
name
- the name- Returns:
- the builder for chaining
- See Also:
-
uuid
Sets the UUID for this profile.- Parameters:
uuid
- the UUID- Returns:
- the builder for chaining
- See Also:
-
addProperty
@Contract(value="_ -> this", mutates="this") ResolvableProfile.Builder addProperty(ProfileProperty property) Adds a property to this profile.- Parameters:
property
- the property- Returns:
- the builder for chaining
- See Also:
-
addProperties
@Contract(value="_ -> this", mutates="this") ResolvableProfile.Builder addProperties(Collection<ProfileProperty> properties) Adds properties to this profile.- Parameters:
properties
- the properties- Returns:
- the builder for chaining
- See Also:
-