PlayerInputFlags
struct
Declaration
[ProtocolSupport(768, 776)]
public readonly record struct PlayerInputFlags : IProtocolType<PlayerInputFlags>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Bitflags/PlayerInputFlags.cs#L5 ↗ |
Implements: IProtocolType<PlayerInputFlags>
Constructors
| Signature | Description |
|---|---|
PlayerInputFlags(bool Forward, bool Backward, bool Left, bool Right, bool Jump, bool Shift, bool Sprint) | - |
PlayerInputFlags(bool, bool, bool, bool, bool, bool, bool)
public PlayerInputFlags(bool Forward, bool Backward, bool Left, bool Right, bool Jump, bool Shift, bool Sprint)
Parameters: Forward (Boolean), Backward (Boolean), Left (Boolean), Right (Boolean), Jump (Boolean), Shift (Boolean), Sprint (Boolean)
Properties
| Signature | Description |
|---|---|
bool Backward | - |
bool Forward | - |
bool Jump | - |
bool Left | - |
bool Right | - |
bool Shift | - |
bool Sprint | - |
Backward
public bool Backward { get; init; }
Returns: Boolean
Forward
public bool Forward { get; init; }
Returns: Boolean
Jump
public bool Jump { get; init; }
Returns: Boolean
Left
public bool Left { get; init; }
Returns: Boolean
Right
public bool Right { get; init; }
Returns: Boolean
Shift
public bool Shift { get; init; }
Returns: Boolean
Sprint
public bool Sprint { get; init; }
Returns: Boolean
Methods
| Signature | Description |
|---|---|
static PlayerInputFlags Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type PlayerInputFlags from the specified reader. |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
Read(ref MinecraftPrimitiveReader, int)
public static PlayerInputFlags Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type PlayerInputFlags from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (Int32)
Returns: PlayerInputFlags - The value that was read.
Write(MinecraftPrimitiveWriter, int)
public void Write(MinecraftPrimitiveWriter writer, int protocolVersion)
Writes the current value to the specified writer.
Parameters: writer (MinecraftPrimitiveWriter), protocolVersion (Int32)