Record Class ThrownPotionSplitFix.ItemIdFinder
java.lang.Object
java.lang.Record
net.minecraft.util.datafix.fixes.ThrownPotionSplitFix.ItemIdFinder
- Enclosing class:
ThrownPotionSplitFix
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.datafixers.OpticFinder<?> The field for theitemFinderrecord component.The field for theitemIdFinderrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateItemIdFinder(com.mojang.datafixers.OpticFinder<?> itemFinder, com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.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.getItemId(com.mojang.datafixers.Typed<?> entity) final inthashCode()Returns a hash code value for this object.com.mojang.datafixers.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
private final com.mojang.datafixers.OpticFinder<?> itemFinderThe field for theitemFinderrecord component. -
itemIdFinder
-
-
Constructor Details
-
ItemIdFinder
private ItemIdFinder(com.mojang.datafixers.OpticFinder<?> itemFinder, com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.Pair<String, String>> 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
public com.mojang.datafixers.OpticFinder<?> itemFinder()Returns the value of theitemFinderrecord component.- Returns:
- the value of the
itemFinderrecord component
-
itemIdFinder
-