Record Class PlayerBoundSecurityCardData
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData
public record PlayerBoundSecurityCardData(SecurityCardData securityCardData, com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player boundTo, List<com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player> players)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, PlayerBoundSecurityCardData> -
Constructor Summary
ConstructorsConstructorDescriptionPlayerBoundSecurityCardData(SecurityCardData securityCardData, com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player boundTo, List<com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player> players) Creates an instance of aPlayerBoundSecurityCardDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.PlayerboundTo()Returns the value of theboundTorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player> players()Returns the value of theplayersrecord component.Returns the value of thesecurityCardDatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,PlayerBoundSecurityCardData> STREAM_CODEC
-
-
Constructor Details
-
PlayerBoundSecurityCardData
public PlayerBoundSecurityCardData(SecurityCardData securityCardData, com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player boundTo, List<com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player> players) Creates an instance of aPlayerBoundSecurityCardDatarecord class.- Parameters:
securityCardData- the value for thesecurityCardDatarecord componentboundTo- the value for theboundTorecord componentplayers- the value for theplayersrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
securityCardData
Returns the value of thesecurityCardDatarecord component.- Returns:
- the value of the
securityCardDatarecord component
-
boundTo
public com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player boundTo()Returns the value of theboundTorecord component.- Returns:
- the value of the
boundTorecord component
-
players
public List<com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player> players()Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-