Enum Class InteractionResult

java.lang.Object
java.lang.Enum<InteractionResult>
net.minecraft.world.InteractionResult
All Implemented Interfaces:
Serializable, Comparable<InteractionResult>, Constable

public enum InteractionResult extends Enum<InteractionResult>
  • Enum Constant Details

  • Constructor Details

    • InteractionResult

      private InteractionResult()
  • Method Details

    • values

      public static InteractionResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static InteractionResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • consumesAction

      public boolean consumesAction()
    • shouldSwing

      public boolean shouldSwing()
    • indicateItemUse

      public boolean indicateItemUse()
    • sidedSuccess

      public static InteractionResult sidedSuccess(boolean p_19079_)