枚举 RaycastContext.ShapeType

    • 枚举常量详细资料

      • COLLIDER

        public static final RaycastContext.ShapeType COLLIDER
        Mappings:
        Namespace Name Mixin selector
        official a Lbuz$a;a:Lbuz$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

        public static final RaycastContext.ShapeType OUTLINE
        Mappings:
        Namespace Name Mixin selector
        official b Lbuz$a;b:Lbuz$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

        public static final RaycastContext.ShapeType VISUAL
        Mappings:
        Namespace Name Mixin selector
        official c Lbuz$a;c:Lbuz$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;
    • 字段详细资料

      • provider

        private final RaycastContext.ShapeProvider provider
        Mappings:
        Namespace Name Mixin selector
        official d Lbuz$a;d:Lbuz$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;
    • 构造器详细资料

      • ShapeType

        private ShapeType​(RaycastContext.ShapeProvider provider)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbuz$a;<init>(Ljava/lang/String;ILbuz$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
    • 方法详细资料

      • 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 get Lbuz$c;get(Lcjr;Lbuv;Lgb;Ldmf;)Ldmt;
        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;