Record Class SecurityCardData
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.security.SecurityCardData
public record SecurityCardData(PlayerSlotReference playerSlotReference, List<com.refinedmods.refinedstorage.common.security.SecurityCardData.Permission> permissions)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, SecurityCardData> -
Constructor Summary
ConstructorsConstructorDescriptionSecurityCardData(PlayerSlotReference playerSlotReference, List<com.refinedmods.refinedstorage.common.security.SecurityCardData.Permission> permissions) Creates an instance of aSecurityCardDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.SecurityCardData.Permission> Returns the value of thepermissionsrecord component.Returns the value of theplayerSlotReferencerecord 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, SecurityCardData> STREAM_CODEC
-
-
Constructor Details
-
SecurityCardData
public SecurityCardData(PlayerSlotReference playerSlotReference, List<com.refinedmods.refinedstorage.common.security.SecurityCardData.Permission> permissions) Creates an instance of aSecurityCardDatarecord class.- Parameters:
playerSlotReference- the value for theplayerSlotReferencerecord componentpermissions- the value for thepermissionsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
playerSlotReference
Returns the value of theplayerSlotReferencerecord component.- Returns:
- the value of the
playerSlotReferencerecord component
-
permissions
public List<com.refinedmods.refinedstorage.common.security.SecurityCardData.Permission> permissions()Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-