Enum ConstantFluidFilter
java.lang.Object
java.lang.Enum<ConstantFluidFilter>
alexiil.mc.lib.attributes.fluid.filter.ConstantFluidFilter
- All Implemented Interfaces:
FluidFilter,ReadableFluidFilter,java.io.Serializable,java.lang.Comparable<ConstantFluidFilter>,java.lang.constant.Constable
public enum ConstantFluidFilter extends java.lang.Enum<ConstantFluidFilter> implements ReadableFluidFilter
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYTHINGAFluidFilterthat matches everything.NOTHINGAFluidFilterthat matches nothing. -
Method Summary
Modifier and Type Method Description FluidFilterand(FluidFilter other)booleanmatches(FluidKey fluid)Checks to see if the given filter matches the given fluid key.FluidFilternegate()static ConstantFluidFilterof(boolean result)FluidFilteror(FluidFilter other)java.lang.StringtoString()static ConstantFluidFiltervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConstantFluidFilter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ANYTHING
AFluidFilterthat matches everything. -
NOTHING
AFluidFilterthat matches nothing.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
of
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Enum<ConstantFluidFilter>
-
matches
Description copied from interface:FluidFilterChecks to see if the given filter matches the given fluid key.- Specified by:
matchesin interfaceFluidFilter
-
negate
- Specified by:
negatein interfaceFluidFilter
-
and
- Specified by:
andin interfaceFluidFilter
-
or
- Specified by:
orin interfaceFluidFilter
-