public static enum RayTraceContext.ShapeType extends Enum<RayTraceContext.ShapeType> implements RayTraceContext.ShapeProvider
Modifier and Type | Field and Description |
---|---|
private RayTraceContext.ShapeProvider |
provider |
Modifier and Type | Method and Description |
---|---|
VoxelShape |
get(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) |
static RayTraceContext.ShapeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RayTraceContext.ShapeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RayTraceContext.ShapeType COLLIDER
public static final RayTraceContext.ShapeType OUTLINE
public static final RayTraceContext.ShapeType VISUAL
private final RayTraceContext.ShapeProvider provider
public static RayTraceContext.ShapeType[] values()
for (RayTraceContext.ShapeType c : RayTraceContext.ShapeType.values()) System.out.println(c);
public static RayTraceContext.ShapeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic VoxelShape get(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
get
in interface RayTraceContext.ShapeProvider