Package net.minecraft.entity.passive
Record Class TropicalFishEntity.Variant
java.lang.Object
java.lang.Record
net.minecraft.entity.passive.TropicalFishEntity.Variant
- Record Components:
variety-baseColor-patternColor-
- Enclosing class:
TropicalFishEntity
public static record TropicalFishEntity.Variant(TropicalFishEntity.Variety variety, DyeColor baseColor, DyeColor patternColor)
extends Record
- Mappings:
Namespace Name official bsj$dintermediary net/minecraft/class_1474$class_7992named net/minecraft/entity/passive/TropicalFishEntity$Variantofficial aintermediary comp_1177named varietyofficial bintermediary comp_1178named baseColorofficial cintermediary comp_1179named patternColor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DyeColorThe field for thebaseColorrecord component.private final DyeColorThe field for thepatternColorrecord component.private final TropicalFishEntity.VarietyThe field for thevarietyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVariant(TropicalFishEntity.Variety variety, DyeColor dyeColor, DyeColor dyeColor2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseColorrecord component.final booleanIndicates whether some other object is "equal to" this one.intgetId()final inthashCode()Returns a hash code value for this object.Returns the value of thepatternColorrecord component.final StringtoString()Returns a string representation of this record class.variety()Returns the value of thevarietyrecord component.
-
Field Details
-
variety
The field for thevarietyrecord component. -
baseColor
The field for thebaseColorrecord component. -
patternColor
The field for thepatternColorrecord component.
-
-
Constructor Details
-
Variant
-
-
Method Details
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLbsj$d;a()Iintermediary method_47872Lnet/minecraft/class_1474$class_7992;method_47872()Inamed getIdLnet/minecraft/entity/passive/TropicalFishEntity$Variant;getId()I
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
variety
Returns the value of thevarietyrecord component.- Returns:
- the value of the
varietyrecord 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
-