Package net.minecraft.world
Enum RaycastContext.ShapeType
- All Implemented Interfaces:
Serializable
,Comparable<RaycastContext.ShapeType>
,java.lang.constant.Constable
,RaycastContext.ShapeProvider
- Enclosing class:
- RaycastContext
public static enum RaycastContext.ShapeType extends Enum<RaycastContext.ShapeType> implements RaycastContext.ShapeProvider
- Mappings:
Namespace Name official btd$a
intermediary net/minecraft/class_3959$class_3960
named net/minecraft/world/RaycastContext$ShapeType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private RaycastContext.ShapeProvider
provider
-
Constructor Summary
Constructors Modifier Constructor Description private
ShapeType(RaycastContext.ShapeProvider provider)
-
Method Summary
Modifier and Type Method Description VoxelShape
get(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
static RaycastContext.ShapeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static RaycastContext.ShapeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COLLIDER
- Mappings:
Namespace Name Mixin selector official a
Lbtd$a;a:Lbtd$a;
intermediary field_17558
Lnet/minecraft/class_3959$class_3960;field_17558:Lnet/minecraft/class_3959$class_3960;
named COLLIDER
Lnet/minecraft/world/RaycastContext$ShapeType;COLLIDER:Lnet/minecraft/world/RaycastContext$ShapeType;
-
OUTLINE
- Mappings:
Namespace Name Mixin selector official b
Lbtd$a;b:Lbtd$a;
intermediary field_17559
Lnet/minecraft/class_3959$class_3960;field_17559:Lnet/minecraft/class_3959$class_3960;
named OUTLINE
Lnet/minecraft/world/RaycastContext$ShapeType;OUTLINE:Lnet/minecraft/world/RaycastContext$ShapeType;
-
VISUAL
- Mappings:
Namespace Name Mixin selector official c
Lbtd$a;c:Lbtd$a;
intermediary field_23142
Lnet/minecraft/class_3959$class_3960;field_23142:Lnet/minecraft/class_3959$class_3960;
named VISUAL
Lnet/minecraft/world/RaycastContext$ShapeType;VISUAL:Lnet/minecraft/world/RaycastContext$ShapeType;
-
-
Field Details
-
provider
- Mappings:
Namespace Name Mixin selector official d
Lbtd$a;d:Lbtd$c;
intermediary field_17560
Lnet/minecraft/class_3959$class_3960;field_17560:Lnet/minecraft/class_3959$class_3961;
named provider
Lnet/minecraft/world/RaycastContext$ShapeType;provider:Lnet/minecraft/world/RaycastContext$ShapeProvider;
-
-
Constructor Details
-
ShapeType
- Mappings:
Namespace Name Mixin selector official <init>
Lbtd$a;<init>(Ljava/lang/String;ILbtd$c;)V
intermediary <init>
Lnet/minecraft/class_3959$class_3960;<init>(Ljava/lang/String;ILnet/minecraft/class_3959$class_3961;)V
named <init>
Lnet/minecraft/world/RaycastContext$ShapeType;<init>(Ljava/lang/String;ILnet/minecraft/world/RaycastContext$ShapeProvider;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
- Specified by:
get
in interfaceRaycastContext.ShapeProvider
- Mappings:
Namespace Name Mixin selector official get
Lbtd$c;get(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;
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;
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;
-