Record Class SetGameModeMessage
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.client.SetGameModeMessage
- All Implemented Interfaces:
net.minestom.server.network.packet.client.ClientPacket
public record SetGameModeMessage(byte gameMode)
extends Record
implements net.minestom.server.network.packet.client.ClientPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<SetGameModeMessage> -
Constructor Summary
ConstructorsConstructorDescriptionSetGameModeMessage(byte gameMode) Creates an instance of aSetGameModeMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.bytegameMode()Returns the value of thegameModerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
SetGameModeMessage
public SetGameModeMessage(byte gameMode) Creates an instance of aSetGameModeMessagerecord class.- Parameters:
gameMode- the value for thegameModerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
gameMode
public byte gameMode()Returns the value of thegameModerecord component.- Returns:
- the value of the
gameModerecord component
-