Record Class CommandSourceStack
java.lang.Object
java.lang.Record
com.soulfiremc.server.command.CommandSourceStack
public record CommandSourceStack(SoulFireServer soulFire, SoulFireUser source, @Nullable Set<UUID> instanceIds, @Nullable Set<UUID> botIds)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommandSourceStack(SoulFireServer soulFire, SoulFireUser source, @Nullable Set<UUID> instanceIds, @Nullable Set<UUID> botIds) Creates an instance of aCommandSourceStackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbotIds()Returns the value of thebotIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.getInstanceVisibleBots(InstanceManager instance) final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceIdsrecord component.static CommandSourceStackofInstance(SoulFireServer soulFire, SoulFireUser source, Set<UUID> instanceIds) static CommandSourceStackofUnrestricted(SoulFireServer soulFire, SoulFireUser source) soulFire()Returns the value of thesoulFirerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.withBotIds(Set<UUID> botIds) withInstanceIds(Set<UUID> instanceIds)
-
Field Details
-
IS_ADMIN
-
-
Constructor Details
-
CommandSourceStack
public CommandSourceStack(SoulFireServer soulFire, SoulFireUser source, @Nullable Set<UUID> instanceIds, @Nullable Set<UUID> botIds) Creates an instance of aCommandSourceStackrecord class.- Parameters:
soulFire- the value for thesoulFirerecord componentsource- the value for thesourcerecord componentinstanceIds- the value for theinstanceIdsrecord componentbotIds- the value for thebotIdsrecord component
-
-
Method Details
-
ofUnrestricted
-
ofInstance
public static CommandSourceStack ofInstance(SoulFireServer soulFire, SoulFireUser source, Set<UUID> instanceIds) -
withInstanceIds
-
withBotIds
-
getVisibleInstances
-
getInstanceVisibleBots
-
getGlobalVisibleBots
-
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). -
soulFire
Returns the value of thesoulFirerecord component.- Returns:
- the value of the
soulFirerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
instanceIds
-
botIds
-