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 - official - gc$b- intermediary - net/minecraft/class_2306$class_2308- named - net/minecraft/command/EntitySelectorOptions$SelectorOption- official - a- intermediary - comp_1063- named - handler- official - b- intermediary - comp_1064- named - condition- official - c- intermediary - comp_1065- named - description
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Predicate<EntitySelectorReader>The field for theconditionrecord component.private final TextThe field for thedescriptionrecord component.private final EntitySelectorOptions.SelectorHandlerThe field for thehandlerrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionSelectorOption(EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description) Creates an instance of aSelectorOptionrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theconditionrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
handlerThe field for thehandlerrecord component.
- 
conditionThe field for theconditionrecord component.
- 
descriptionThe field for thedescriptionrecord component.
 
- 
- 
Constructor Details- 
SelectorOptionSelectorOption(EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description) Creates an instance of aSelectorOptionrecord class.- Parameters:
- handler- the value for the- handlerrecord component
- condition- the value for the- conditionrecord component
- description- the value for the- descriptionrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
handlerReturns the value of thehandlerrecord component.- Returns:
- the value of the handlerrecord component
 
- 
conditionReturns the value of theconditionrecord component.- Returns:
- the value of the conditionrecord component
 
- 
descriptionReturns the value of thedescriptionrecord component.- Returns:
- the value of the descriptionrecord component
 
 
-