Record Class EntitySelectorParser
java.lang.Object
java.lang.Record
dev.jorel.commandapi.arguments.parser.EntitySelectorParser
public record EntitySelectorParser(ThrowingSupplyingParser<org.bukkit.entity.Player> player, ThrowingSupplyingParser<org.bukkit.entity.Entity> entity, ThrowingFunctionParser<Boolean,Collection<org.bukkit.entity.Player>> players, ThrowingFunctionParser<Boolean,Collection<org.bukkit.entity.Entity>> entities)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntitySelectorParser(ThrowingSupplyingParser<org.bukkit.entity.Player> player, ThrowingSupplyingParser<org.bukkit.entity.Entity> entity, ThrowingFunctionParser<Boolean, Collection<org.bukkit.entity.Player>> players, ThrowingFunctionParser<Boolean, Collection<org.bukkit.entity.Entity>> entities) Creates an instance of aEntitySelectorParserrecord class. -
Method Summary
Modifier and TypeMethodDescriptionThrowingFunctionParser<Boolean, Collection<org.bukkit.entity.Entity>> entities()Returns the value of theentitiesrecord component.ThrowingSupplyingParser<org.bukkit.entity.Entity> entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ThrowingSupplyingParser<org.bukkit.entity.Player> player()Returns the value of theplayerrecord component.ThrowingFunctionParser<Boolean, Collection<org.bukkit.entity.Player>> players()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntitySelectorParser
public EntitySelectorParser(ThrowingSupplyingParser<org.bukkit.entity.Player> player, ThrowingSupplyingParser<org.bukkit.entity.Entity> entity, ThrowingFunctionParser<Boolean, Collection<org.bukkit.entity.Player>> players, ThrowingFunctionParser<Boolean, Collection<org.bukkit.entity.Entity>> entities) Creates an instance of aEntitySelectorParserrecord class.- Parameters:
player- the value for theplayerrecord componententity- the value for theentityrecord componentplayers- the value for theplayersrecord componententities- the value for theentitiesrecord 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). -
player
Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
players
Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-