Package net.minecraft
Record Class class_12220
java.lang.Object
java.lang.Record
net.minecraft.class_12220
- Record Components:
value-alpha-
- Mappings:
Namespace Name named net/minecraft/class_12220intermediary net/minecraft/class_12220official ceinamed valueintermediary comp_5142official bnamed alphaintermediary comp_5143official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thealpharecord component.private static final com.mojang.serialization.Codec<class_12220> static final com.mojang.serialization.Codec<class_12220> private final floatThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12220(float float2) class_12220(float value, float alpha) Creates an instance of aclass_12220record class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.
-
Field Details
-
value
private final float valueThe field for thevaluerecord component. -
alpha
private final float alphaThe field for thealpharecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/class_12220;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63806Lnet/minecraft/class_12220;field_63806:Lcom/mojang/serialization/Codec;official dLcei;d:Lcom/mojang/serialization/Codec;
-
field_63805
- Mappings:
Namespace Name Mixin selector named field_63805Lnet/minecraft/class_12220;field_63805:Lcom/mojang/serialization/Codec;intermediary field_63805Lnet/minecraft/class_12220;field_63805:Lcom/mojang/serialization/Codec;official aLcei;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
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 with '=='. -
value
public float value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-