Package net.minecraft.util
Record Class PlayerInput
java.lang.Object
java.lang.Record
net.minecraft.util.PlayerInput
- Record Components:
forward-backward-left-right-jump-sneak-sprint-
public record PlayerInput(boolean forward, boolean backward, boolean left, boolean right, boolean jump, boolean sneak, boolean sprint)
extends Record
- Mappings:
Namespace Name named net/minecraft/util/PlayerInputintermediary net/minecraft/class_10185official cownamed forwardintermediary comp_3159official cnamed backwardintermediary comp_3160official dnamed leftintermediary comp_3161official enamed rightintermediary comp_3162official fnamed jumpintermediary comp_3163official gnamed sneakintermediary comp_3164official hnamed sprintintermediary comp_3165official i
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thebackwardrecord component.private static final bytestatic PlayerInputprivate final booleanThe field for theforwardrecord component.private static final byteprivate final booleanThe field for thejumprecord component.private static final byteprivate final booleanThe field for theleftrecord component.private static final bytestatic final PacketCodec<PacketByteBuf, PlayerInput> private final booleanThe field for therightrecord component.private static final byteprivate final booleanThe field for thesneakrecord component.private static final byteprivate final booleanThe field for thesprintrecord component.private static final byte -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInput(boolean bool, boolean bool2, boolean bool3, boolean bool4, boolean bool5, boolean bool6, boolean bool7) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbackward()Returns the value of thebackwardrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanforward()Returns the value of theforwardrecord component.final inthashCode()Returns a hash code value for this object.booleanjump()Returns the value of thejumprecord component.booleanleft()Returns the value of theleftrecord component.booleanright()Returns the value of therightrecord component.booleansneak()Returns the value of thesneakrecord component.booleansprint()Returns the value of thesprintrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
forward
private final boolean forwardThe field for theforwardrecord component. -
backward
private final boolean backwardThe field for thebackwardrecord component. -
left
private final boolean leftThe field for theleftrecord component. -
right
private final boolean rightThe field for therightrecord component. -
jump
private final boolean jumpThe field for thejumprecord component. -
sneak
private final boolean sneakThe field for thesneakrecord component. -
sprint
private final boolean sprintThe field for thesprintrecord component. -
FORWARD
private static final byte FORWARD- See Also:
- Mappings:
Namespace Name Mixin selector named FORWARDLnet/minecraft/util/PlayerInput;FORWARD:Bintermediary field_54099Lnet/minecraft/class_10185;field_54099:Bofficial jLcow;j:B
-
BACKWARD
private static final byte BACKWARD- See Also:
- Mappings:
Namespace Name Mixin selector named BACKWARDLnet/minecraft/util/PlayerInput;BACKWARD:Bintermediary field_54100Lnet/minecraft/class_10185;field_54100:Bofficial kLcow;k:B
-
LEFT
private static final byte LEFT- See Also:
- Mappings:
Namespace Name Mixin selector named LEFTLnet/minecraft/util/PlayerInput;LEFT:Bintermediary field_54101Lnet/minecraft/class_10185;field_54101:Bofficial lLcow;l:B
-
RIGHT
private static final byte RIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named RIGHTLnet/minecraft/util/PlayerInput;RIGHT:Bintermediary field_54102Lnet/minecraft/class_10185;field_54102:Bofficial mLcow;m:B
-
JUMP
private static final byte JUMP- See Also:
- Mappings:
Namespace Name Mixin selector named JUMPLnet/minecraft/util/PlayerInput;JUMP:Bintermediary field_54103Lnet/minecraft/class_10185;field_54103:Bofficial nLcow;n:B
-
SNEAK
private static final byte SNEAK- See Also:
- Mappings:
Namespace Name Mixin selector named SNEAKLnet/minecraft/util/PlayerInput;SNEAK:Bintermediary field_54104Lnet/minecraft/class_10185;field_54104:Bofficial oLcow;o:B
-
SPRINT
private static final byte SPRINT- See Also:
- Mappings:
Namespace Name Mixin selector named SPRINTLnet/minecraft/util/PlayerInput;SPRINT:Bintermediary field_54105Lnet/minecraft/class_10185;field_54105:Bofficial pLcow;p:B
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/util/PlayerInput;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_54097Lnet/minecraft/class_10185;field_54097:Lnet/minecraft/class_9139;official aLcow;a:Lyn;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/util/PlayerInput;DEFAULT:Lnet/minecraft/util/PlayerInput;intermediary field_54098Lnet/minecraft/class_10185;field_54098:Lnet/minecraft/class_10185;official bLcow;b:Lcow;
-
-
Constructor Details
-
PlayerInput
public PlayerInput(boolean bool, boolean bool2, boolean bool3, boolean bool4, boolean bool5, boolean bool6, boolean bool7)
-
-
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 '=='. -
forward
public boolean forward()Returns the value of theforwardrecord component.- Returns:
- the value of the
forwardrecord component
-
backward
public boolean backward()Returns the value of thebackwardrecord component.- Returns:
- the value of the
backwardrecord component
-
left
public boolean left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
public boolean right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
jump
public boolean jump()Returns the value of thejumprecord component.- Returns:
- the value of the
jumprecord component
-
sneak
public boolean sneak()Returns the value of thesneakrecord component.- Returns:
- the value of the
sneakrecord component
-
sprint
public boolean sprint()Returns the value of thesprintrecord component.- Returns:
- the value of the
sprintrecord component
-