public enum SpigotParticleVersion extends Enum<SpigotParticleVersion>
An enum used by ParticleNode class to store
particle version.
It is used to represent a change in particle names (for ex. in field, enum or string) between Minecraft updates.
It also provides interface class associated with certain particle version for easier generation.
| Modifier and Type | Field and Description |
|---|---|
static SpigotParticleVersion |
INITIAL_VERSION |
static int |
VERSION_COUNT |
| Modifier and Type | Method and Description |
|---|---|
ClassMapping |
getImplType() |
Class<?> |
getParticleTypesClass() |
ClassMapping |
getType() |
static SpigotParticleVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpigotParticleVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpigotParticleVersion V1_7
public static final SpigotParticleVersion V1_8
public static final SpigotParticleVersion V1_13
public static final SpigotParticleVersion V1_18
public static final SpigotParticleVersion INITIAL_VERSION
public static final int VERSION_COUNT
public static SpigotParticleVersion[] values()
for (SpigotParticleVersion c : SpigotParticleVersion.values()) System.out.println(c);
public static SpigotParticleVersion 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 Class<?> getParticleTypesClass()
public ClassMapping getType()
public ClassMapping getImplType()
Copyright © 2022. All Rights Reserved.