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 aPlayerBoundSecurityCardData
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player
boundTo()
Returns the value of theboundTo
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.List
<com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player> players()
Returns the value of theplayers
record component.Returns the value of thesecurityCardData
record component.final String
toString()
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 aPlayerBoundSecurityCardData
record class.- Parameters:
securityCardData
- the value for thesecurityCardData
record componentboundTo
- the value for theboundTo
record componentplayers
- the value for theplayers
record 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 thesecurityCardData
record component.- Returns:
- the value of the
securityCardData
record component
-
boundTo
public com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player boundTo()Returns the value of theboundTo
record component.- Returns:
- the value of the
boundTo
record component
-
players
public List<com.refinedmods.refinedstorage.common.security.PlayerBoundSecurityCardData.Player> players()Returns the value of theplayers
record component.- Returns:
- the value of the
players
record component
-