Package net.minecraft.util.packrat
Record Class ParsingRule.SimpleRule<S,T> 
java.lang.Object
java.lang.Record
net.minecraft.util.packrat.ParsingRule.SimpleRule<S,T> 
- Record Components:
- action-
- child-
- All Implemented Interfaces:
- ParsingRule<S,- T> 
- Enclosing interface:
- ParsingRule<S,- T> 
public static record ParsingRule.SimpleRule<S,T> (ParsingRule.RuleAction<S,T> action, Term<S> child)
extends Record
implements ParsingRule<S,T>  
- Mappings:
- Namespace - Name - named - net/minecraft/util/packrat/ParsingRule$SimpleRule- intermediary - net/minecraft/class_9396$class_9399- official - bql$c- named - action- intermediary - comp_2476- official - a- named - child- intermediary - comp_2477- official - b
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.util.packrat.ParsingRuleParsingRule.RuleAction<S,T>, ParsingRule.SimpleRule<S, T>, ParsingRule.StatelessAction<S, T> 
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.child()Returns the value of thechildrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.parse(ParsingState<S> state) final StringtoString()Returns a string representation of this record class.
- 
Field Details
- 
Constructor Details- 
SimpleRule
 
- 
- 
Method Details- 
parse- Specified by:
- parsein interface- ParsingRule<S,- T> 
- Mappings:
- Namespace - Name - Mixin selector - named - parse- Lnet/minecraft/util/packrat/ParsingRule;parse(Lnet/minecraft/util/packrat/ParsingState;)Ljava/lang/Object;- intermediary - method_58318- Lnet/minecraft/class_9396;method_58318(Lnet/minecraft/class_9393;)Ljava/lang/Object;- official - a- Lbql;a(Lbqk;)Ljava/lang/Object;
 
- 
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).
- 
actionReturns the value of theactionrecord component.- Returns:
- the value of the actionrecord component
 
- 
childReturns the value of thechildrecord component.- Returns:
- the value of the childrecord component
 
 
-