Record Class SimpleTeamSocialManager
java.lang.Object
java.lang.Record
com.portingdeadmods.researchd.impl.team.SimpleTeamSocialManager
- All Implemented Interfaces:
TeamSocialManager
public record SimpleTeamSocialManager(com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> receivedInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> sentInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> ignores)
extends Record
implements TeamSocialManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SimpleTeamSocialManager> static final SimpleTeamSocialManagerstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, SimpleTeamSocialManager> -
Constructor Summary
ConstructorsConstructorDescriptionSimpleTeamSocialManager(com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> receivedInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> sentInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> ignores) Creates an instance of aSimpleTeamSocialManagerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddReceivedInvite(UUID uuid) voidaddSentInvite(UUID uuid) booleancontainsIgnore(UUID uuid) booleancontainsReceivedInvite(UUID uuid) booleancontainsSentInvite(UUID uuid) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> ignores()Returns the value of theignoresrecord component.com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> Returns the value of thereceivedInvitesrecord component.voidremoveIgnore(UUID uuid) voidremoveReceivedInvite(UUID uuid) voidremoveSentInvite(UUID uuid) com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> Returns the value of thesentInvitesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,SimpleTeamSocialManager> STREAM_CODEC -
EMPTY
-
-
Constructor Details
-
SimpleTeamSocialManager
public SimpleTeamSocialManager(com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> receivedInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> sentInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> ignores) Creates an instance of aSimpleTeamSocialManagerrecord class.- Parameters:
receivedInvites- the value for thereceivedInvitesrecord componentsentInvites- the value for thesentInvitesrecord componentignores- the value for theignoresrecord component
-
-
Method Details
-
addReceivedInvite
- Specified by:
addReceivedInvitein interfaceTeamSocialManager
-
removeReceivedInvite
- Specified by:
removeReceivedInvitein interfaceTeamSocialManager
-
containsReceivedInvite
- Specified by:
containsReceivedInvitein interfaceTeamSocialManager
-
addSentInvite
- Specified by:
addSentInvitein interfaceTeamSocialManager
-
removeSentInvite
- Specified by:
removeSentInvitein interfaceTeamSocialManager
-
containsSentInvite
- Specified by:
containsSentInvitein interfaceTeamSocialManager
-
addIgnore
- Specified by:
addIgnorein interfaceTeamSocialManager
-
removeIgnore
- Specified by:
removeIgnorein interfaceTeamSocialManager
-
containsIgnore
- Specified by:
containsIgnorein interfaceTeamSocialManager
-
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 withObjects::equals(Object,Object). -
receivedInvites
Returns the value of thereceivedInvitesrecord component.- Returns:
- the value of the
receivedInvitesrecord component
-
sentInvites
Returns the value of thesentInvitesrecord component.- Returns:
- the value of the
sentInvitesrecord component
-
ignores
Returns the value of theignoresrecord component.- Returns:
- the value of the
ignoresrecord component
-