Enum Class MaterialCategoryCondition.MaterialCategory
java.lang.Object
java.lang.Enum<MaterialCategoryCondition.MaterialCategory>
me.deecaad.core.mechanics.conditions.MaterialCategoryCondition.MaterialCategory
- All Implemented Interfaces:
Serializable,Comparable<MaterialCategoryCondition.MaterialCategory>,Constable
- Enclosing class:
MaterialCategoryCondition
public static enum MaterialCategoryCondition.MaterialCategory
extends Enum<MaterialCategoryCondition.MaterialCategory>
This is used to determine what "kind" of block you are in. Sometimes, we want sounds to have an
echo, but only when the player is in an enclosed space. Instead of running calculations every
time we play the sound, we simply check if we are in cave_air (Vanilla generates caves using
cave_air). This is also good for adventure maps, who can replace normal air with cave_air.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
ALL
-
AIR
-
FLUID
-
CAVE_AIR
-
VOID_AIR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
test
public abstract boolean test(org.bukkit.block.Block block)
-