Package net.minecraft.util.math
Enum RayTraceContext.BlockMode
- java.lang.Object
-
- java.lang.Enum<RayTraceContext.BlockMode>
-
- net.minecraft.util.math.RayTraceContext.BlockMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RayTraceContext.BlockMode>
,RayTraceContext.IVoxelProvider
- Enclosing class:
- RayTraceContext
public static enum RayTraceContext.BlockMode extends java.lang.Enum<RayTraceContext.BlockMode> implements RayTraceContext.IVoxelProvider
-
-
Field Summary
Fields Modifier and Type Field Description private RayTraceContext.IVoxelProvider
shapeGetter
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockMode(RayTraceContext.IVoxelProvider p_i49926_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VoxelShape
get(BlockState p_get_1_, IBlockReader p_get_2_, BlockPos p_get_3_, ISelectionContext p_get_4_)
static RayTraceContext.BlockMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RayTraceContext.BlockMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COLLIDER
public static final RayTraceContext.BlockMode COLLIDER
-
OUTLINE
public static final RayTraceContext.BlockMode OUTLINE
-
VISUAL
public static final RayTraceContext.BlockMode VISUAL
-
-
Field Detail
-
shapeGetter
private final RayTraceContext.IVoxelProvider shapeGetter
-
-
Constructor Detail
-
BlockMode
private BlockMode(RayTraceContext.IVoxelProvider p_i49926_3_)
-
-
Method Detail
-
values
public static RayTraceContext.BlockMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RayTraceContext.BlockMode c : RayTraceContext.BlockMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RayTraceContext.BlockMode valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
get
public VoxelShape get(BlockState p_get_1_, IBlockReader p_get_2_, BlockPos p_get_3_, ISelectionContext p_get_4_)
- Specified by:
get
in interfaceRayTraceContext.IVoxelProvider
-
-