Package net.minecraft.command
Record Class EntitySelectorOptions.SelectorOption
java.lang.Object
java.lang.Record
net.minecraft.command.EntitySelectorOptions.SelectorOption
- Record Components:
handler
-condition
-description
-
- Enclosing class:
EntitySelectorOptions
private static record EntitySelectorOptions.SelectorOption(EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description)
extends Record
- Mappings:
Namespace Name named net/minecraft/command/EntitySelectorOptions$SelectorOption
intermediary net/minecraft/class_2306$class_2308
official hg$b
named handler
intermediary comp_1063
official a
named condition
intermediary comp_1064
official b
named description
intermediary comp_1065
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate
<EntitySelectorReader> The field for thecondition
record component.private final Text
The field for thedescription
record component.private final EntitySelectorOptions.SelectorHandler
The field for thehandler
record component. -
Constructor Summary
ConstructorDescriptionSelectorOption
(EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description) Creates an instance of aSelectorOption
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecondition
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.handler()
Returns the value of thehandler
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
handler
The field for thehandler
record component. -
condition
The field for thecondition
record component. -
description
The field for thedescription
record component.
-
-
Constructor Details
-
SelectorOption
SelectorOption(EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description) Creates an instance of aSelectorOption
record class.- Parameters:
handler
- the value for thehandler
record componentcondition
- the value for thecondition
record componentdescription
- the value for thedescription
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)
. -
handler
Returns the value of thehandler
record component.- Returns:
- the value of the
handler
record component
-
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-