Record Class AddOwnerDelayed.DelayedInput
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.core.commands.AddOwnerDelayed.DelayedInput
- Record Components:
targetPlayer- The target player to add to this structure as co-owner.If this player is already an owner of the target door, their permission will be overridden provided that the command sender is allowed to add/remove co-owners at both the old and the new target permission level.
targetPermissionLevel- The permission level of the new owner's ownership. Defaults toAddOwner.DEFAULT_PERMISSION_LEVEL.
- Enclosing class:
AddOwnerDelayed
public static record AddOwnerDelayed.DelayedInput(IPlayer targetPlayer, PermissionLevel targetPermissionLevel)
extends Record
Represents the data that can be provided as delayed input for this command. See
DelayedCommand.runDelayed(ICommandSender, StructureRetriever) and
AddOwnerDelayed.delayedInputExecutor(ICommandSender, StructureRetriever, DelayedInput).-
Constructor Summary
ConstructorsConstructorDescriptionDelayedInput(IPlayer targetPlayer) DelayedInput(IPlayer targetPlayer, @Nullable PermissionLevel targetPermissionLevel) Creates an instance of aDelayedInputrecord 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.Returns the value of thetargetPermissionLevelrecord component.Returns the value of thetargetPlayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DelayedInput
Creates an instance of aDelayedInputrecord class.- Parameters:
targetPlayer- the value for thetargetPlayerrecord componenttargetPermissionLevel- the value for thetargetPermissionLevelrecord component
-
DelayedInput
-
-
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). -
targetPlayer
Returns the value of thetargetPlayerrecord component.- Returns:
- the value of the
targetPlayerrecord component
-
targetPermissionLevel
Returns the value of thetargetPermissionLevelrecord component.- Returns:
- the value of the
targetPermissionLevelrecord component
-