Package net.minecraft
Record Class class_12123.class_12124
java.lang.Object
java.lang.Record
net.minecraft.class_12123.class_12124
- Record Components:
maxDurationTicks-minSpeed-minRelativeSpeed-
- Enclosing class:
class_12123
public static record class_12123.class_12124(int maxDurationTicks, float minSpeed, float minRelativeSpeed)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_12123$class_12124intermediary net/minecraft/class_12123$class_12124official dme$anamed maxDurationTicksintermediary comp_4965official cnamed minSpeedintermediary comp_4966official dnamed minRelativeSpeedintermediary comp_4967official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<class_12123.class_12124> static final PacketCodec<ByteBuf, class_12123.class_12124> private final intThe field for themaxDurationTicksrecord component.private final floatThe field for theminRelativeSpeedrecord component.private final floatThe field for theminSpeedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12124(int maxDurationTicks, float minSpeed, float minRelativeSpeed) Creates an instance of aclass_12124record 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.intReturns the value of themaxDurationTicksrecord component.booleanmethod_75237(int int2, double double2, double double3, double double4) static Optional<class_12123.class_12124> method_75238(int int2, float float2) static Optional<class_12123.class_12124> method_75240(int int2, float float2) floatReturns the value of theminRelativeSpeedrecord component.floatminSpeed()Returns the value of theminSpeedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
maxDurationTicks
private final int maxDurationTicksThe field for themaxDurationTicksrecord component. -
minSpeed
private final float minSpeedThe field for theminSpeedrecord component. -
minRelativeSpeed
private final float minRelativeSpeedThe field for theminRelativeSpeedrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/class_12123$class_12124;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63409Lnet/minecraft/class_12123$class_12124;field_63409:Lcom/mojang/serialization/Codec;official aLdme$a;a:Lcom/mojang/serialization/Codec;
-
field_63410
- Mappings:
Namespace Name Mixin selector named field_63410Lnet/minecraft/class_12123$class_12124;field_63410:Lnet/minecraft/network/codec/PacketCodec;intermediary field_63410Lnet/minecraft/class_12123$class_12124;field_63410:Lnet/minecraft/class_9139;official bLdme$a;b:Laat;
-
-
Constructor Details
-
class_12124
public class_12124(int maxDurationTicks, float minSpeed, float minRelativeSpeed) Creates an instance of aclass_12124record class.- Parameters:
maxDurationTicks- the value for themaxDurationTicksrecord componentminSpeed- the value for theminSpeedrecord componentminRelativeSpeed- the value for theminRelativeSpeedrecord component
-
-
Method Details
-
method_75237
public boolean method_75237(int int2, double double2, double double3, double double4) - Mappings:
Namespace Name Mixin selector named method_75237Lnet/minecraft/class_12123$class_12124;method_75237(IDDD)Zintermediary method_75237Lnet/minecraft/class_12123$class_12124;method_75237(IDDD)Zofficial aLdme$a;a(IDDD)Z
-
method_75238
- Mappings:
Namespace Name Mixin selector named method_75238Lnet/minecraft/class_12123$class_12124;method_75238(IF)Ljava/util/Optional;intermediary method_75238Lnet/minecraft/class_12123$class_12124;method_75238(IF)Ljava/util/Optional;official aLdme$a;a(IF)Ljava/util/Optional;
-
method_75240
- Mappings:
Namespace Name Mixin selector named method_75240Lnet/minecraft/class_12123$class_12124;method_75240(IF)Ljava/util/Optional;intermediary method_75240Lnet/minecraft/class_12123$class_12124;method_75240(IF)Ljava/util/Optional;official bLdme$a;b(IF)Ljava/util/Optional;
-
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 '=='. -
maxDurationTicks
public int maxDurationTicks()Returns the value of themaxDurationTicksrecord component.- Returns:
- the value of the
maxDurationTicksrecord component
-
minSpeed
public float minSpeed()Returns the value of theminSpeedrecord component.- Returns:
- the value of the
minSpeedrecord component
-
minRelativeSpeed
public float minRelativeSpeed()Returns the value of theminRelativeSpeedrecord component.- Returns:
- the value of the
minRelativeSpeedrecord component
-