Enum Class HitResultType

java.lang.Object
java.lang.Enum<HitResultType>
net.minecraft.util.hit.HitResultType
All Implemented Interfaces:
Serializable, Comparable<HitResultType>, Constable

public enum HitResultType extends Enum<HitResultType>
Mappings:
Namespace Name
official brv
intermediary net/minecraft/class_235
named net/minecraft/util/hit/HitResultType
  • Enum Constant Details

    • MISS

      public static final HitResultType MISS
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a:Lbrv;
      intermediary field_7608 Lnet/minecraft/class_235;field_7608:Lnet/minecraft/class_235;
      named MISS Lnet/minecraft/util/hit/HitResultType;MISS:Lnet/minecraft/util/hit/HitResultType;
    • BLOCK

      public static final HitResultType BLOCK
      Mappings:
      Namespace Name Mixin selector
      official b Lbrv;b:Lbrv;
      intermediary field_7609 Lnet/minecraft/class_235;field_7609:Lnet/minecraft/class_235;
      named BLOCK Lnet/minecraft/util/hit/HitResultType;BLOCK:Lnet/minecraft/util/hit/HitResultType;
    • ENTITY

      public static final HitResultType ENTITY
      Mappings:
      Namespace Name Mixin selector
      official c Lbrv;c:Lbrv;
      intermediary field_603 Lnet/minecraft/class_235;field_603:Lnet/minecraft/class_235;
      named ENTITY Lnet/minecraft/util/hit/HitResultType;ENTITY:Lnet/minecraft/util/hit/HitResultType;
  • Constructor Details

    • HitResultType

      private HitResultType()
  • Method Details

    • values

      public static HitResultType[] 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 HitResultType 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