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
intermediary net/minecraft/class_212
glue class_233
server gd
client jg
named net/minecraft/util/hit/HitResultType
  • Enum Constant Details

    • BLOCK

      public static final HitResultType BLOCK
      Mappings:
      Namespace Name Mixin selector
      intermediary field_789 Lnet/minecraft/class_212;field_789:Lnet/minecraft/class_212;
      glue field_986 Lclass_233;field_986:Lclass_233;
      server a Lgd;a:Lgd;
      client a Ljg;a:Ljg;
      named BLOCK Lnet/minecraft/util/hit/HitResultType;BLOCK:Lnet/minecraft/util/hit/HitResultType;
    • ENTITY

      public static final HitResultType ENTITY
      Mappings:
      Namespace Name Mixin selector
      intermediary field_790 Lnet/minecraft/class_212;field_790:Lnet/minecraft/class_212;
      glue field_987 Lclass_233;field_987:Lclass_233;
      server b Lgd;b:Lgd;
      client b Ljg;b:Ljg;
      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