Package xyz.xenondevs.particle
Enum Class PropertyType
- All Implemented Interfaces:
Serializable
,Comparable<PropertyType>
,java.lang.constant.Constable
Enum
to easily define which properties are supported by specific
ParticleEffects
.
Current Property types
- Since:
- 05.06.2019
- Author:
- ByteZ
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the color of the given particle can be set.Directional particles accept a custom vector as the direction.A dust particle accepts a custom color and a custom size (between 0-4).Specifies that the given particle needs the data of a block to be functional.Specifies that the given particle needs the data of an item to be functional.Specifies that the given particle needs water in order to be displayed correctly.Specifies that the size of the given particle can be changed in the offsetX parameter. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyType
Returns the enum constant of this class with the specified name.static PropertyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DIRECTIONAL
Directional particles accept a custom vector as the direction. This data is set as the offsetX, offsetY and offsetZ of the particle packet. -
COLORABLE
Specifies that the color of the given particle can be set. Before 1.13 the RGB values of the color is simply set as the offsetX, offsetY and offsetZ of the particle packet. But that has changed since 1.13. Redstone particles now have a custom ParticleParam called "ParticleParamRedstone". However, other particles like spell_mob/effect_entity are still handled the old way. -
REQUIRES_BLOCK
Specifies that the given particle needs the data of a block to be functional. Before 1.13 this data was saved in an int array that could easily be set in the constructor of the packet. However, because of the major 1.13 particle changes this data can no longer be set in a simple int array. There is now a custom object to set the data of such particles. The class of this object is ParticleParamBlock, and it implements the ParticleParam interface, which is now needed in the constructor. -
REQUIRES_ITEM
Specifies that the given particle needs the data of an item to be functional. Before 1.13 this data was saved in an int array that could easily be set in the constructor of the packet. However, because of the major 1.13 particle changes this data can no longer be set in a simple int array. There is now a custom object to set the data of such particles. The class of this object is ParticleParamItem, and it implements the ParticleParam interface, which is now needed in the constructor. -
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. -
DUST
A dust particle accepts a custom color and a custom size (between 0-4). Please note that thisPropertyType
is not supported on pre 1.13 servers.
-
-
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
-