Package net.minecraft.util.datafix.fixes
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 theitemFinder
record component.The field for theitemIdFinder
record component. -
Constructor Summary
ConstructorsConstructorDescriptionItemIdFinder
(com.mojang.datafixers.OpticFinder<?> itemFinder, com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.Pair<String, String>> itemIdFinder) Creates an instance of aItemIdFinder
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getItemId
(com.mojang.datafixers.Typed<?> p_400206_) final int
hashCode()
Returns a hash code value for this object.com.mojang.datafixers.OpticFinder
<?> Returns the value of theitemFinder
record component.Returns the value of theitemIdFinder
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ItemIdFinder
ItemIdFinder(com.mojang.datafixers.OpticFinder<?> itemFinder, com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.Pair<String, String>> itemIdFinder) Creates an instance of aItemIdFinder
record class.- Parameters:
itemFinder
- the value for theitemFinder
record componentitemIdFinder
- the value for theitemIdFinder
record component
-
-
Method Details
-
getItemId
-
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)
. -
itemFinder
public com.mojang.datafixers.OpticFinder<?> itemFinder()Returns the value of theitemFinder
record component.- Returns:
- the value of the
itemFinder
record component
-
itemIdFinder
public com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.Pair<String,String>> itemIdFinder()Returns the value of theitemIdFinder
record component.- Returns:
- the value of the
itemIdFinder
record component
-