Package net.minecraft.client.network
Record Class CookieStorage
java.lang.Object
java.lang.Record
net.minecraft.client.network.CookieStorage
- Record Components:
-seenPlayers-seenInsecureChatWarning-
@Environment(CLIENT)
public record CookieStorage(Map<Identifier,byte[]> cookies, Map<UUID,PlayerListEntry> seenPlayers, boolean seenInsecureChatWarning)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/network/CookieStorageintermediary net/minecraft/class_9112official hafnamed cookiesintermediary comp_2206official anamed seenPlayersintermediary comp_4613official bnamed seenInsecureChatWarningintermediary comp_4614official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Identifier, byte[]> The field for thecookiesrecord component.private final booleanThe field for theseenInsecureChatWarningrecord component.private final Map<UUID, PlayerListEntry> The field for theseenPlayersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCookieStorage(Map<Identifier, byte[]> map, Map<UUID, PlayerListEntry> map2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionMap<Identifier, byte[]> cookies()Returns the value of thecookiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theseenInsecureChatWarningrecord component.Returns the value of theseenPlayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
cookies
The field for thecookiesrecord component. -
seenPlayers
The field for theseenPlayersrecord component. -
seenInsecureChatWarning
private final boolean seenInsecureChatWarningThe field for theseenInsecureChatWarningrecord component.
-
-
Constructor Details
-
CookieStorage
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
cookies
Returns the value of thecookiesrecord component.- Returns:
- the value of the
cookiesrecord component
-
seenPlayers
Returns the value of theseenPlayersrecord component.- Returns:
- the value of the
seenPlayersrecord component
-
seenInsecureChatWarning
public boolean seenInsecureChatWarning()Returns the value of theseenInsecureChatWarningrecord component.- Returns:
- the value of the
seenInsecureChatWarningrecord component
-