public static enum RaycastContext.ShapeType extends Enum<RaycastContext.ShapeType> implements RaycastContext.ShapeProvider
Modifier and Type | Field and Description |
---|---|
private RaycastContext.ShapeProvider |
provider |
Modifier and Type | Method and 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.
|
public static final RaycastContext.ShapeType COLLIDER
public static final RaycastContext.ShapeType OUTLINE
public static final RaycastContext.ShapeType VISUAL
private final RaycastContext.ShapeProvider provider
public static RaycastContext.ShapeType[] values()
for (RaycastContext.ShapeType c : RaycastContext.ShapeType.values()) System.out.println(c);
public static RaycastContext.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 RaycastContext.ShapeProvider