Interface CustomModelData.Builder
- All Superinterfaces:
- DataComponentBuilder<CustomModelData>
- Enclosing interface:
- CustomModelData
@Experimental
@NonExtendable
public static interface CustomModelData.Builder
extends DataComponentBuilder<CustomModelData>
Builder for 
CustomModelData.- 
Method SummaryModifier 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.DataComponentBuilderbuild
- 
Method Details- 
addFloatAdds a float to this custom model data.- Parameters:
- f- the float
- Returns:
- the builder for chaining
- See Also:
 
- 
addFloatsAdds multiple floats to this custom model data.- Parameters:
- floats- the floats
- Returns:
- the builder for chaining
- See Also:
 
- 
addFlagAdds a flag to this custom model data.- Parameters:
- flag- the flag
- Returns:
- the builder for chaining
- See Also:
 
- 
addFlagsAdds multiple flags to this custom model data.- Parameters:
- flags- the flags
- Returns:
- the builder for chaining
- See Also:
 
- 
addStringAdds 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:
 
- 
addColorAdds a color to this custom model data.- Parameters:
- color- the color
- Returns:
- the builder for chaining
- See Also:
 
- 
addColorsAdds multiple colors to this custom model data.- Parameters:
- colors- the colors
- Returns:
- the builder for chaining
- See Also:
 
 
-