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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
getMappedClass
(String name) Gets the mappedClass
for the given name.static Field
getMappedField
(Class targetClass, String name, boolean declared) Gets the mappedField
for the given name.static Method
getMappedMethod
(Class<?> targetClass, String name, Class<?>... parameterTypes) Gets the mappedMethod
for the given name.
-
Constructor Details
-
ParticleMappings
public ParticleMappings()
-
-
Method Details
-
getMappedClass
Gets the mappedClass
for the given name.- Parameters:
name
- the name of the class- Returns:
- the mapped
Class
-
getMappedMethod
Gets the mappedMethod
for 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 mappedField
for 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
-