Package net.minecraft
Record Class class_9704.class_9707
java.lang.Object
java.lang.Record
net.minecraft.class_9704.class_9707
- Record Components:
numerator-denominator-
- All Implemented Interfaces:
class_9704
- Enclosing interface:
class_9704
public static record class_9704.class_9707(class_9704 numerator, class_9704 denominator)
extends Record
implements class_9704
- Mappings:
Namespace Name named net/minecraft/class_9704$class_9707intermediary net/minecraft/class_9704$class_9707official czq$cnamed numeratorintermediary comp_2695official dnamed denominatorintermediary comp_2696official e
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_9704
class_9704.class_9705, class_9704.class_9706, class_9704.class_9707, class_9704.class_9708, class_9704.class_9709 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_9704The field for thedenominatorrecord component.static final com.mojang.serialization.MapCodec<class_9704.class_9707> private final class_9704The field for thenumeratorrecord component.Fields inherited from interface net.minecraft.class_9704
field_51689, field_51690 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedenominatorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.serialization.MapCodec<class_9704.class_9707> floatmethod_60188(int int2) Returns the value of thenumeratorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
numerator
The field for thenumeratorrecord component. -
denominator
The field for thedenominatorrecord component. -
field_51694
- Mappings:
Namespace Name Mixin selector named field_51694Lnet/minecraft/class_9704$class_9707;field_51694:Lcom/mojang/serialization/MapCodec;intermediary field_51694Lnet/minecraft/class_9704$class_9707;field_51694:Lcom/mojang/serialization/MapCodec;official cLczq$c;c:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_9707
-
-
Method Details
-
method_60188
public float method_60188(int int2) - Specified by:
method_60188in interfaceclass_9704- Mappings:
Namespace Name Mixin selector named method_60188Lnet/minecraft/class_9704;method_60188(I)Fintermediary method_60188Lnet/minecraft/class_9704;method_60188(I)Fofficial aLczq;a(I)F
-
method_60185
- Specified by:
method_60185in interfaceclass_9704- Mappings:
Namespace Name Mixin selector named method_60185Lnet/minecraft/class_9704;method_60185()Lcom/mojang/serialization/MapCodec;intermediary method_60185Lnet/minecraft/class_9704;method_60185()Lcom/mojang/serialization/MapCodec;official aLczq;a()Lcom/mojang/serialization/MapCodec;
-
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). -
numerator
Returns the value of thenumeratorrecord component.- Returns:
- the value of the
numeratorrecord component
-
denominator
Returns the value of thedenominatorrecord component.- Returns:
- the value of the
denominatorrecord component
-