Package net.minecraft.world
Record Class InteractionResult.TryEmptyHandInteraction
java.lang.Object
java.lang.Record
net.minecraft.world.InteractionResult.TryEmptyHandInteraction
- All Implemented Interfaces:
InteractionResult
- Enclosing interface:
InteractionResult
public static record InteractionResult.TryEmptyHandInteraction()
extends Record
implements InteractionResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.InteractionResult
InteractionResult.Fail, InteractionResult.ItemContext, InteractionResult.Pass, InteractionResult.Success, InteractionResult.SwingSource, InteractionResult.TryEmptyHandInteraction
-
Field Summary
Fields inherited from interface net.minecraft.world.InteractionResult
CONSUME, FAIL, PASS, SUCCESS, SUCCESS_SERVER, TRY_WITH_EMPTY_HAND
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aTryEmptyHandInteraction
record class. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.InteractionResult
consumesAction
-
Constructor Details
-
TryEmptyHandInteraction
public TryEmptyHandInteraction()Creates an instance of aTryEmptyHandInteraction
record class.
-
-
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.
-