public enum ParticleVersion extends Enum<ParticleVersion>
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 ParticleVersion |
INITIAL_VERSION |
static int |
VERSION_COUNT |
| Modifier and Type | Method and Description |
|---|---|
org.objectweb.asm.Type |
getImplType()
Gets
Type object associated with class implementing interface. |
Class<?> |
getParticleTypesClass()
Gets interface class associated with particle version.
|
org.objectweb.asm.Type |
getSuperType()
Gets
Type object associated with interface class. |
static ParticleVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParticleVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParticleVersion V1_7
public static final ParticleVersion V1_8
public static final ParticleVersion V1_13
public static final ParticleVersion V1_18
public static final ParticleVersion INITIAL_VERSION
public static final int VERSION_COUNT
public static ParticleVersion[] values()
for (ParticleVersion c : ParticleVersion.values()) System.out.println(c);
public static ParticleVersion 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()
Gets interface class associated with particle version.
public org.objectweb.asm.Type getSuperType()
Gets Type object associated with interface class.
Type object representing interface class.public org.objectweb.asm.Type getImplType()
Gets Type object associated with class implementing interface.
Type object representing class implementing interface.Copyright © 2022. All Rights Reserved.