Contents
Record Class BuilderToolsPlugin.ColorGradientMaterial
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.BuilderToolsPlugin.ColorGradientMaterial
- Enclosing class:
BuilderToolsPlugin
public static record BuilderToolsPlugin.ColorGradientMaterial(@Nonnull BlockPattern pattern, float weight)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionColorGradientMaterial(BlockPattern pattern, float weight) Creates an instance of aColorGradientMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.floatweight()Returns the value of theweightrecord component.
-
Constructor Details
-
ColorGradientMaterial
Creates an instance of aColorGradientMaterialrecord class.- Parameters:
pattern- the value for thepatternrecord componentweight- the value for theweightrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
weight
public float weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-