Record Class TropicalFishMeta.Variant
java.lang.Object
java.lang.Record
net.minestom.server.entity.metadata.water.fish.TropicalFishMeta.Variant
- Enclosing class:
TropicalFishMeta
public static record TropicalFishMeta.Variant(TropicalFishMeta.Pattern pattern, DyeColor baseColor, DyeColor patternColor)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVariant(TropicalFishMeta.Pattern pattern, DyeColor baseColor, DyeColor patternColor) Creates an instance of aVariantrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseColorrecord component.final booleanIndicates whether some other object is "equal to" this one.static TropicalFishMeta.VariantfromPackedId(int packedId) final inthashCode()Returns a hash code value for this object.intpackedId()pattern()Returns the value of thepatternrecord component.Returns the value of thepatternColorrecord component.final StringtoString()Returns a string representation of this record class.withBodyColor(DyeColor newBodyColor) withPattern(TropicalFishMeta.Pattern newPattern) withPatternColor(DyeColor newPatternColor)
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Variant
Creates an instance of aVariantrecord class.- Parameters:
pattern- the value for thepatternrecord componentbaseColor- the value for thebaseColorrecord componentpatternColor- the value for thepatternColorrecord component
-
-
Method Details
-
fromPackedId
-
packedId
public int packedId() -
withPattern
-
withBodyColor
-
withPatternColor
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
baseColor
Returns the value of thebaseColorrecord component.- Returns:
- the value of the
baseColorrecord component
-
patternColor
Returns the value of thepatternColorrecord component.- Returns:
- the value of the
patternColorrecord component
-