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 - crm$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 SummaryFieldsModifier and TypeFieldDescriptionprivate final Vec3dThe field for themovementrecord component.static final PacketCodec<ByteBuf, ExperimentalMinecartController.Step> private final Vec3dThe field for thepositionrecord component.private final floatThe field for theweightrecord component.private final floatThe field for thexRotrecord component.private final floatThe field for theyRotrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.movement()Returns the value of themovementrecord component.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.floatweight()Returns the value of theweightrecord component.floatxRot()Returns the value of thexRotrecord component.floatyRot()Returns the value of theyRotrecord component.
- 
Field Details- 
positionThe field for thepositionrecord component.
- 
movementThe field for themovementrecord component.
- 
yRotprivate final float yRotThe field for theyRotrecord component.
- 
xRotprivate final float xRotThe field for thexRotrecord component.
- 
weightprivate final float weightThe field for theweightrecord 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- Lcrm$a;a:Lyn;
 
- 
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- Lcrm$a;b:Lcrm$a;
 
 
- 
- 
Constructor Details- 
Step
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
positionReturns the value of thepositionrecord component.- Returns:
- the value of the positionrecord component
 
- 
movementReturns the value of themovementrecord component.- Returns:
- the value of the movementrecord component
 
- 
yRotpublic float yRot()Returns the value of theyRotrecord component.- Returns:
- the value of the yRotrecord component
 
- 
xRotpublic float xRot()Returns the value of thexRotrecord component.- Returns:
- the value of the xRotrecord component
 
- 
weightpublic float weight()Returns the value of theweightrecord component.- Returns:
- the value of the weightrecord component
 
 
-