Enum Class HitType

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

public enum HitType extends Enum<HitType>
Mappings:
Namespace Name
intermediary net/minecraft/class_212
glue class_233
server gd
client jg
named net/minecraft/util/hit/HitType
  • Enum Constant Details

    • TILE

      public static final HitType TILE
      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 TILE Lnet/minecraft/util/hit/HitType;TILE:Lnet/minecraft/util/hit/HitType;
    • ENTITY

      public static final HitType 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/HitType;ENTITY:Lnet/minecraft/util/hit/HitType;
  • Constructor Details

    • HitType

      private HitType()
  • Method Details

    • values

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