Interface CustomModelData.Builder
- All Superinterfaces:
DataComponentBuilder<CustomModelData>
- Enclosing interface:
CustomModelData
@Experimental
@NonExtendable
public static interface CustomModelData.Builder
extends DataComponentBuilder<CustomModelData>
Builder for
CustomModelData
.-
Method Summary
Modifier and TypeMethodDescriptionAdds a color to this custom model data.Adds multiple colors to this custom model data.addFlag
(boolean flag) Adds a flag to this custom model data.Adds multiple flags to this custom model data.addFloat
(float f) Adds a float to this custom model data.Adds multiple floats to this custom model data.Adds a string to this custom model data.addStrings
(List<String> strings) Adds multiple strings to this custom model data.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
addFloat
Adds a float to this custom model data.- Parameters:
f
- the float- Returns:
- the builder for chaining
- See Also:
-
addFloats
Adds multiple floats to this custom model data.- Parameters:
floats
- the floats- Returns:
- the builder for chaining
- See Also:
-
addFlag
Adds a flag to this custom model data.- Parameters:
flag
- the flag- Returns:
- the builder for chaining
- See Also:
-
addFlags
Adds multiple flags to this custom model data.- Parameters:
flags
- the flags- Returns:
- the builder for chaining
- See Also:
-
addString
Adds a string to this custom model data.- Parameters:
string
- the string- Returns:
- the builder for chaining
- See Also:
-
addStrings
@Contract(value="_ -> this", mutates="this") CustomModelData.Builder addStrings(List<String> strings) Adds multiple strings to this custom model data.- Parameters:
strings
- the strings- Returns:
- the builder for chaining
- See Also:
-
addColor
Adds a color to this custom model data.- Parameters:
color
- the color- Returns:
- the builder for chaining
- See Also:
-
addColors
Adds multiple colors to this custom model data.- Parameters:
colors
- the colors- Returns:
- the builder for chaining
- See Also:
-