Package net.minecraft.util
Record Class ActionResult.class_9860
java.lang.Object
java.lang.Record
net.minecraft.util.ActionResult.class_9860
- Record Components:
swingSource-itemContext-
- All Implemented Interfaces:
ActionResult
- Enclosing interface:
ActionResult
public static record ActionResult.class_9860(ActionResult.class_9861 swingSource, ActionResult.class_9858 itemContext)
extends Record
implements ActionResult
- Mappings:
Namespace Name named net/minecraft/util/ActionResult$class_9860intermediary net/minecraft/class_1269$class_9860official brk$dnamed swingSourceintermediary comp_2909official gnamed itemContextintermediary comp_2910official h
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.ActionResult
ActionResult.class_9857, ActionResult.class_9858, ActionResult.class_9859, ActionResult.class_9860, ActionResult.class_9861, ActionResult.class_9862 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ActionResult.class_9858The field for theitemContextrecord component.private final ActionResult.class_9861The field for theswingSourcerecord component.Fields inherited from interface net.minecraft.util.ActionResult
field_21466, field_52422, field_52423, field_5811, field_5812, field_5814 -
Constructor Summary
ConstructorsConstructorDescriptionclass_9860(ActionResult.class_9861 class_9861, ActionResult.class_9858 class_9858) -
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.booleanReturns whether an action is performed.Returns the value of theitemContextrecord component.method_61393(ItemStack itemStack) booleanReturns the value of theswingSourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
swingSource
The field for theswingSourcerecord component. -
itemContext
The field for theitemContextrecord component.
-
-
Constructor Details
-
class_9860
-
-
Method Details
-
isAccepted
public boolean isAccepted()Returns whether an action is performed.- Specified by:
isAcceptedin interfaceActionResult- Returns:
- whether an action is performed
- Mappings:
Namespace Name Mixin selector named isAcceptedLnet/minecraft/util/ActionResult;isAccepted()Zintermediary method_23665Lnet/minecraft/class_1269;method_23665()Zofficial aLbrk;a()Z
-
method_61393
- Mappings:
Namespace Name Mixin selector named method_61393Lnet/minecraft/util/ActionResult$class_9860;method_61393(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/ActionResult$class_9860;intermediary method_61393Lnet/minecraft/class_1269$class_9860;method_61393(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269$class_9860;official aLbrk$d;a(Lcvl;)Lbrk$d;
-
method_61394
- Mappings:
Namespace Name Mixin selector named method_61394Lnet/minecraft/util/ActionResult$class_9860;method_61394()Lnet/minecraft/util/ActionResult$class_9860;intermediary method_61394Lnet/minecraft/class_1269$class_9860;method_61394()Lnet/minecraft/class_1269$class_9860;official bLbrk$d;b()Lbrk$d;
-
method_61395
public boolean method_61395()- Mappings:
Namespace Name Mixin selector named method_61395Lnet/minecraft/util/ActionResult$class_9860;method_61395()Zintermediary method_61395Lnet/minecraft/class_1269$class_9860;method_61395()Zofficial cLbrk$d;c()Z
-
method_61396
- Mappings:
Namespace Name Mixin selector named method_61396Lnet/minecraft/util/ActionResult$class_9860;method_61396()Lnet/minecraft/item/ItemStack;intermediary method_61396Lnet/minecraft/class_1269$class_9860;method_61396()Lnet/minecraft/class_1799;official dLbrk$d;d()Lcvl;
-
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). -
swingSource
Returns the value of theswingSourcerecord component.- Returns:
- the value of the
swingSourcerecord component
-
itemContext
Returns the value of theitemContextrecord component.- Returns:
- the value of the
itemContextrecord component
-