Enum Class RaycastContext.ShapeType

java.lang.Object
java.lang.Enum<RaycastContext.ShapeType>
net.minecraft.world.RaycastContext.ShapeType
All Implemented Interfaces:
Serializable, Comparable<RaycastContext.ShapeType>, Constable, RaycastContext.ShapeProvider
Enclosing class:
RaycastContext

public static enum RaycastContext.ShapeType extends Enum<RaycastContext.ShapeType> implements RaycastContext.ShapeProvider
Mappings:
Namespace Name
named net/minecraft/world/RaycastContext$ShapeType
intermediary net/minecraft/class_3959$class_3960
official dgp$a
  • Enum Constant Details

    • COLLIDER

      public static final RaycastContext.ShapeType COLLIDER
      Mappings:
      Namespace Name Mixin selector
      named COLLIDER Lnet/minecraft/world/RaycastContext$ShapeType;COLLIDER:Lnet/minecraft/world/RaycastContext$ShapeType;
      intermediary field_17558 Lnet/minecraft/class_3959$class_3960;field_17558:Lnet/minecraft/class_3959$class_3960;
      official a Ldgp$a;a:Ldgp$a;
    • OUTLINE

      public static final RaycastContext.ShapeType OUTLINE
      Mappings:
      Namespace Name Mixin selector
      named OUTLINE Lnet/minecraft/world/RaycastContext$ShapeType;OUTLINE:Lnet/minecraft/world/RaycastContext$ShapeType;
      intermediary field_17559 Lnet/minecraft/class_3959$class_3960;field_17559:Lnet/minecraft/class_3959$class_3960;
      official b Ldgp$a;b:Ldgp$a;
    • VISUAL

      public static final RaycastContext.ShapeType VISUAL
      Mappings:
      Namespace Name Mixin selector
      named VISUAL Lnet/minecraft/world/RaycastContext$ShapeType;VISUAL:Lnet/minecraft/world/RaycastContext$ShapeType;
      intermediary field_23142 Lnet/minecraft/class_3959$class_3960;field_23142:Lnet/minecraft/class_3959$class_3960;
      official c Ldgp$a;c:Ldgp$a;
    • FALLDAMAGE_RESETTING

      public static final RaycastContext.ShapeType FALLDAMAGE_RESETTING
      Mappings:
      Namespace Name Mixin selector
      named FALLDAMAGE_RESETTING Lnet/minecraft/world/RaycastContext$ShapeType;FALLDAMAGE_RESETTING:Lnet/minecraft/world/RaycastContext$ShapeType;
      intermediary field_36337 Lnet/minecraft/class_3959$class_3960;field_36337:Lnet/minecraft/class_3959$class_3960;
      official d Ldgp$a;d:Ldgp$a;
  • Field Details

    • provider

      private final RaycastContext.ShapeProvider provider
      Mappings:
      Namespace Name Mixin selector
      named provider Lnet/minecraft/world/RaycastContext$ShapeType;provider:Lnet/minecraft/world/RaycastContext$ShapeProvider;
      intermediary field_17560 Lnet/minecraft/class_3959$class_3960;field_17560:Lnet/minecraft/class_3959$class_3961;
      official e Ldgp$a;e:Ldgp$c;
  • Constructor Details

    • ShapeType

      private ShapeType(RaycastContext.ShapeProvider provider)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/RaycastContext$ShapeType;<init>(Ljava/lang/String;ILnet/minecraft/world/RaycastContext$ShapeProvider;)V
      intermediary <init> Lnet/minecraft/class_3959$class_3960;<init>(Ljava/lang/String;ILnet/minecraft/class_3959$class_3961;)V
      official <init> Ldgp$a;<init>(Ljava/lang/String;ILdgp$c;)V
  • Method Details

    • values

      public static RaycastContext.ShapeType[] 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 RaycastContext.ShapeType 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
    • get

      public VoxelShape get(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Specified by:
      get in interface RaycastContext.ShapeProvider
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/world/RaycastContext$ShapeProvider;get(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
      intermediary get Lnet/minecraft/class_3959$class_3961;get(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      official get Ldgp$c;get(Ldxu;Ldgm;Ljh;Lfcc;)Lfcr;