public enum ParticleVersion extends java.lang.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 | Method and Description |
|---|---|
org.objectweb.asm.Type |
getImplType()
Gets
Type object associated with class implementing interface. |
java.lang.Class<?> |
getParticleTypesClass()
Gets interface class associated with particle version.
|
org.objectweb.asm.Type |
getSuperType()
Gets
Type object associated with interface class. |
static ParticleVersion |
valueOf(java.lang.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 ParticleVersion[] values()
for (ParticleVersion c : ParticleVersion.values()) System.out.println(c);
public static ParticleVersion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.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 © 2020. All Rights Reserved.