public enum PropertyType extends Enum<PropertyType>
Enum to easily define which properties are supported by specific
ParticleEffects.
Current Property types
| Enum Constant and Description |
|---|
COLORABLE
Specifies that the color of the given particle can be set.
|
DIRECTIONAL
Directional particles accept a custom vector as the direction.
|
DUST
A dust particle accepts a custom color and a custom size (between 0-4).
|
REQUIRES_BLOCK
Specifies that the given particle needs the data of a block to be
functional.
|
REQUIRES_ITEM
Specifies that the given particle needs the data of an item to be
functional.
|
REQUIRES_WATER
Specifies that the given particle needs water in order to be displayed correctly.
|
RESIZEABLE
Specifies that the size of the given particle can be changed in the offsetX parameter.
|
| Modifier and Type | Method and Description |
|---|---|
static PropertyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyType DIRECTIONAL
public static final PropertyType COLORABLE
public static final PropertyType REQUIRES_BLOCK
public static final PropertyType REQUIRES_ITEM
public static final PropertyType REQUIRES_WATER
public static final PropertyType RESIZEABLE
public static final PropertyType DUST
PropertyType is not supported on pre 1.13 servers.public static PropertyType[] values()
for (PropertyType c : PropertyType.values()) System.out.println(c);
public static PropertyType 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 nullCopyright © 2021. All rights reserved.