Enum Class BlockHitResult.Type

java.lang.Object
java.lang.Enum<BlockHitResult.Type>
net.minecraft.util.hit.BlockHitResult.Type
All Implemented Interfaces:
Serializable, Comparable<BlockHitResult.Type>, Constable
Enclosing class:
BlockHitResult

public static enum BlockHitResult.Type extends Enum<BlockHitResult.Type>
Mappings:
Namespace Name
official auh$a
intermediary net/minecraft/class_234$class_235
named net/minecraft/util/hit/BlockHitResult$Type
  • Enum Constant Details

    • MISS

      public static final BlockHitResult.Type MISS
      Mappings:
      Namespace Name Mixin selector
      official a Lauh$a;a:Lauh$a;
      intermediary field_7608 Lnet/minecraft/class_234$class_235;field_7608:Lnet/minecraft/class_234$class_235;
      named MISS Lnet/minecraft/util/hit/BlockHitResult$Type;MISS:Lnet/minecraft/util/hit/BlockHitResult$Type;
    • BLOCK

      public static final BlockHitResult.Type BLOCK
      Mappings:
      Namespace Name Mixin selector
      official b Lauh$a;b:Lauh$a;
      intermediary field_7609 Lnet/minecraft/class_234$class_235;field_7609:Lnet/minecraft/class_234$class_235;
      named BLOCK Lnet/minecraft/util/hit/BlockHitResult$Type;BLOCK:Lnet/minecraft/util/hit/BlockHitResult$Type;
    • ENTITY

      public static final BlockHitResult.Type ENTITY
      Mappings:
      Namespace Name Mixin selector
      official c Lauh$a;c:Lauh$a;
      intermediary field_603 Lnet/minecraft/class_234$class_235;field_603:Lnet/minecraft/class_234$class_235;
      named ENTITY Lnet/minecraft/util/hit/BlockHitResult$Type;ENTITY:Lnet/minecraft/util/hit/BlockHitResult$Type;
  • Constructor Details

    • Type

      private Type()
  • Method Details

    • values

      public static BlockHitResult.Type[] 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 BlockHitResult.Type 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