Record Class ThrownPotionSplitFix.ItemIdFinder
java.lang.Object
java.lang.Record
net.minecraft.util.datafix.fixes.ThrownPotionSplitFix.ItemIdFinder
- Enclosing class:
ThrownPotionSplitFix
private static record ThrownPotionSplitFix.ItemIdFinder(OpticFinder<?> itemFinder, OpticFinder<Pair<String,String>> itemIdFinder)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OpticFinder<?> The field for theitemFinderrecord component.private final OpticFinder<Pair<String, String>> The field for theitemIdFinderrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateItemIdFinder(OpticFinder<?> itemFinder, OpticFinder<Pair<String, String>> itemIdFinder) Creates an instance of aItemIdFinderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.OpticFinder<?> Returns the value of theitemFinderrecord component.Returns the value of theitemIdFinderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
itemFinder
The field for theitemFinderrecord component. -
itemIdFinder
The field for theitemIdFinderrecord component.
-
-
Constructor Details
-
ItemIdFinder
Creates an instance of aItemIdFinderrecord class.- Parameters:
itemFinder- the value for theitemFinderrecord componentitemIdFinder- the value for theitemIdFinderrecord component
-
-
Method Details
-
getItemId
-
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). -
itemFinder
Returns the value of theitemFinderrecord component.- Returns:
- the value of the
itemFinderrecord component
-
itemIdFinder
Returns the value of theitemIdFinderrecord component.- Returns:
- the value of the
itemIdFinderrecord component
-