Package xyz.xenondevs.particle
Class ParticleMappings
java.lang.Object
xyz.xenondevs.particle.ParticleMappings
Maps classes, methods and fields to their respective names for different versions of Minecraft.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>getMappedClass(String name) Gets the mappedClassfor the given name.static FieldgetMappedField(Class targetClass, String name, boolean declared) Gets the mappedFieldfor the given name.static MethodgetMappedMethod(Class<?> targetClass, String name, Class<?>... parameterTypes) Gets the mappedMethodfor the given name.
-
Constructor Details
-
ParticleMappings
public ParticleMappings()
-
-
Method Details
-
getMappedClass
Gets the mappedClassfor the given name.- Parameters:
name- the name of the class- Returns:
- the mapped
Class
-
getMappedMethod
Gets the mappedMethodfor the given name.- Parameters:
targetClass- the class to get the method fromname- the name of the methodparameterTypes- the parameter types of the method- Returns:
- the mapped
Method
-
getMappedField
Gets the mappedFieldfor the given name.- Parameters:
targetClass- the class to get the field fromname- the name of the fielddeclared- whether to get the declared field or not- Returns:
- the mapped
Field
-