枚举 RaycastContext.ShapeType
- java.lang.Object
-
- java.lang.Enum<RaycastContext.ShapeType>
-
- net.minecraft.world.RaycastContext.ShapeType
-
- 封闭类:
- RaycastContext
public static enum RaycastContext.ShapeType extends Enum<RaycastContext.ShapeType> implements RaycastContext.ShapeProvider
- Mappings:
Namespace Name official buz$aintermediary net/minecraft/class_3959$class_3960named net/minecraft/world/RaycastContext$ShapeType
-
-
字段概要
字段 修饰符和类型 字段 说明 private RaycastContext.ShapeProviderprovider
-
构造器概要
构造器 限定符 构造器 说明 privateShapeType(RaycastContext.ShapeProvider provider)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 VoxelShapeget(BlockState state, BlockView world, BlockPos pos, ShapeContext context)static RaycastContext.ShapeTypevalueOf(String name)返回带有指定名称的该类型的枚举常量。static RaycastContext.ShapeType[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
COLLIDER
public static final RaycastContext.ShapeType COLLIDER
- Mappings:
Namespace Name Mixin selector official aLbuz$a;a:Lbuz$a;intermediary field_17558Lnet/minecraft/class_3959$class_3960;field_17558:Lnet/minecraft/class_3959$class_3960;named COLLIDERLnet/minecraft/world/RaycastContext$ShapeType;COLLIDER:Lnet/minecraft/world/RaycastContext$ShapeType;
-
OUTLINE
public static final RaycastContext.ShapeType OUTLINE
- Mappings:
Namespace Name Mixin selector official bLbuz$a;b:Lbuz$a;intermediary field_17559Lnet/minecraft/class_3959$class_3960;field_17559:Lnet/minecraft/class_3959$class_3960;named OUTLINELnet/minecraft/world/RaycastContext$ShapeType;OUTLINE:Lnet/minecraft/world/RaycastContext$ShapeType;
-
VISUAL
public static final RaycastContext.ShapeType VISUAL
- Mappings:
Namespace Name Mixin selector official cLbuz$a;c:Lbuz$a;intermediary field_23142Lnet/minecraft/class_3959$class_3960;field_23142:Lnet/minecraft/class_3959$class_3960;named VISUALLnet/minecraft/world/RaycastContext$ShapeType;VISUAL:Lnet/minecraft/world/RaycastContext$ShapeType;
-
-
字段详细资料
-
provider
private final RaycastContext.ShapeProvider provider
- Mappings:
Namespace Name Mixin selector official dLbuz$a;d:Lbuz$c;intermediary field_17560Lnet/minecraft/class_3959$class_3960;field_17560:Lnet/minecraft/class_3959$class_3961;named providerLnet/minecraft/world/RaycastContext$ShapeType;provider:Lnet/minecraft/world/RaycastContext$ShapeProvider;
-
-
构造器详细资料
-
ShapeType
private ShapeType(RaycastContext.ShapeProvider provider)
- Mappings:
Namespace Name Mixin selector official <init>Lbuz$a;<init>(Ljava/lang/String;ILbuz$c;)Vintermediary <init>Lnet/minecraft/class_3959$class_3960;<init>(Ljava/lang/String;ILnet/minecraft/class_3959$class_3961;)Vnamed <init>Lnet/minecraft/world/RaycastContext$ShapeType;<init>(Ljava/lang/String;ILnet/minecraft/world/RaycastContext$ShapeProvider;)V
-
-
方法详细资料
-
values
public static RaycastContext.ShapeType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (RaycastContext.ShapeType c : RaycastContext.ShapeType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static RaycastContext.ShapeType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
get
public VoxelShape get(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
- 指定者:
get在接口中RaycastContext.ShapeProvider- Mappings:
Namespace Name Mixin selector official getLbuz$c;get(Lcjr;Lbuv;Lgb;Ldmf;)Ldmt;intermediary getLnet/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 getLnet/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;
-
-