Package net.minecraft.util
Record Class ActionResult.class_9858
java.lang.Object
java.lang.Record
net.minecraft.util.ActionResult.class_9858
- Record Components:
wasItemInteraction-heldItemTransformedTo-
- Enclosing interface:
ActionResult
public static record ActionResult.class_9858(boolean wasItemInteraction, @Nullable ItemStack heldItemTransformedTo)
extends Record
- Mappings:
Namespace Name named net/minecraft/util/ActionResult$class_9858intermediary net/minecraft/class_1269$class_9858official brk$bnamed wasItemInteractionintermediary comp_2907official cnamed heldItemTransformedTointermediary comp_2908official d
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static ActionResult.class_9858(package private) static ActionResult.class_9858The field for theheldItemTransformedTorecord component.private final booleanThe field for thewasItemInteractionrecord component. -
Constructor Summary
Constructors -
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.Returns the value of theheldItemTransformedTorecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewasItemInteractionrecord component.
-
Field Details
-
wasItemInteraction
private final boolean wasItemInteractionThe field for thewasItemInteractionrecord component. -
heldItemTransformedTo
The field for theheldItemTransformedTorecord component. -
field_52424
- Mappings:
Namespace Name Mixin selector named field_52424Lnet/minecraft/util/ActionResult$class_9858;field_52424:Lnet/minecraft/util/ActionResult$class_9858;intermediary field_52424Lnet/minecraft/class_1269$class_9858;field_52424:Lnet/minecraft/class_1269$class_9858;official aLbrk$b;a:Lbrk$b;
-
field_52425
- Mappings:
Namespace Name Mixin selector named field_52425Lnet/minecraft/util/ActionResult$class_9858;field_52425:Lnet/minecraft/util/ActionResult$class_9858;intermediary field_52425Lnet/minecraft/class_1269$class_9858;field_52425:Lnet/minecraft/class_1269$class_9858;official bLbrk$b;b:Lbrk$b;
-
-
Constructor Details
-
class_9858
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
wasItemInteraction
public boolean wasItemInteraction()Returns the value of thewasItemInteractionrecord component.- Returns:
- the value of the
wasItemInteractionrecord component
-
heldItemTransformedTo
Returns the value of theheldItemTransformedTorecord component.- Returns:
- the value of the
heldItemTransformedTorecord component
-