Package net.minecraft.entity.vehicle
Record Class ExperimentalMinecartController.Step
java.lang.Object
java.lang.Record
net.minecraft.entity.vehicle.ExperimentalMinecartController.Step
- Record Components:
position
-movement
-yRot
-xRot
-weight
-
- Enclosing class:
ExperimentalMinecartController
public static record ExperimentalMinecartController.Step(Vec3d position, Vec3d movement, float yRot, float xRot, float weight)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/ExperimentalMinecartController$Step
intermediary net/minecraft/class_9879$class_9880
official csk$a
named position
intermediary comp_2921
official c
named movement
intermediary comp_2922
official d
named yRot
intermediary comp_2923
official e
named xRot
intermediary comp_2924
official f
named weight
intermediary comp_2925
official g
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Vec3d
The field for themovement
record component.static final PacketCodec
<ByteBuf, ExperimentalMinecartController.Step> private final Vec3d
The field for theposition
record component.private final float
The field for theweight
record component.private final float
The field for thexRot
record component.private final float
The field for theyRot
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.movement()
Returns the value of themovement
record component.position()
Returns the value of theposition
record component.final String
toString()
Returns a string representation of this record class.float
weight()
Returns the value of theweight
record component.float
xRot()
Returns the value of thexRot
record component.float
yRot()
Returns the value of theyRot
record component.
-
Field Details
-
position
The field for theposition
record component. -
movement
The field for themovement
record component. -
yRot
private final float yRotThe field for theyRot
record component. -
xRot
private final float xRotThe field for thexRot
record component. -
weight
private final float weightThe field for theweight
record component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/entity/vehicle/ExperimentalMinecartController$Step;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_52540
Lnet/minecraft/class_9879$class_9880;field_52540:Lnet/minecraft/class_9139;
official a
Lcsk$a;a:Lzt;
-
ZERO
- Mappings:
Namespace Name Mixin selector named ZERO
Lnet/minecraft/entity/vehicle/ExperimentalMinecartController$Step;ZERO:Lnet/minecraft/entity/vehicle/ExperimentalMinecartController$Step;
intermediary field_52541
Lnet/minecraft/class_9879$class_9880;field_52541:Lnet/minecraft/class_9879$class_9880;
official b
Lcsk$a;b:Lcsk$a;
-
-
Constructor Details
-
Step
-
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
movement
Returns the value of themovement
record component.- Returns:
- the value of the
movement
record component
-
yRot
public float yRot()Returns the value of theyRot
record component.- Returns:
- the value of the
yRot
record component
-
xRot
public float xRot()Returns the value of thexRot
record component.- Returns:
- the value of the
xRot
record component
-
weight
public float weight()Returns the value of theweight
record component.- Returns:
- the value of the
weight
record component
-