public static enum RaycastContext.FluidHandling extends Enum<RaycastContext.FluidHandling>
Enum Constant and Description |
---|
ANY |
NONE |
SOURCE_ONLY |
Modifier and Type | Field and Description |
---|---|
private Predicate<FluidState> |
predicate |
Modifier and Type | Method and Description |
---|---|
boolean |
handled(FluidState state) |
static RaycastContext.FluidHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaycastContext.FluidHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaycastContext.FluidHandling NONE
public static final RaycastContext.FluidHandling SOURCE_ONLY
public static final RaycastContext.FluidHandling ANY
private final Predicate<FluidState> predicate
public static RaycastContext.FluidHandling[] values()
for (RaycastContext.FluidHandling c : RaycastContext.FluidHandling.values()) System.out.println(c);
public static RaycastContext.FluidHandling 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 boolean handled(FluidState state)