Record Class BedrockFriendsService.FriendWorld
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.friends.BedrockFriendsService.FriendWorld
- Enclosing class:
BedrockFriendsService
-
Constructor Summary
ConstructorsConstructorDescriptionFriendWorld(String handleId, String ownerXuid, String hostName, String worldName, String version, int players, int maxPlayers, int protocol, SocketAddress address) Creates an instance of aFriendWorldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.handleId()Returns the value of thehandleIdrecord component.final inthashCode()Returns a hash code value for this object.hostName()Returns the value of thehostNamerecord component.intReturns the value of themaxPlayersrecord component.Returns the value of theownerXuidrecord component.intplayers()Returns the value of theplayersrecord component.intprotocol()Returns the value of theprotocolrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.Returns the value of theworldNamerecord component.
-
Constructor Details
-
FriendWorld
public FriendWorld(String handleId, String ownerXuid, String hostName, String worldName, String version, int players, int maxPlayers, int protocol, SocketAddress address) Creates an instance of aFriendWorldrecord class.- Parameters:
handleId- the value for thehandleIdrecord componentownerXuid- the value for theownerXuidrecord componenthostName- the value for thehostNamerecord componentworldName- the value for theworldNamerecord componentversion- the value for theversionrecord componentplayers- the value for theplayersrecord componentmaxPlayers- the value for themaxPlayersrecord componentprotocol- the value for theprotocolrecord componentaddress- the value for theaddressrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
handleId
Returns the value of thehandleIdrecord component.- Returns:
- the value of the
handleIdrecord component
-
ownerXuid
Returns the value of theownerXuidrecord component.- Returns:
- the value of the
ownerXuidrecord component
-
hostName
Returns the value of thehostNamerecord component.- Returns:
- the value of the
hostNamerecord component
-
worldName
Returns the value of theworldNamerecord component.- Returns:
- the value of the
worldNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
players
public int players()Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
maxPlayers
public int maxPlayers()Returns the value of themaxPlayersrecord component.- Returns:
- the value of the
maxPlayersrecord component
-
protocol
public int protocol()Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-