Uses of Class
me.croabeast.common.reflect.Reflector
Packages that use Reflector
-
Uses of Reflector in me.croabeast.common.reflect
Fields in me.croabeast.common.reflect declared as ReflectorModifier and TypeFieldDescriptionfinal @Nullable ReflectorCraft.Command.Dispatcher.INSTANCEA singletonReflectorinstance for the command dispatcher.final ReflectorCraft.Server.INSTANCEA singletonReflectorinstance wrapping the current Bukkit server.final ReflectorCraft.Server.Minecraft.INSTANCEA singletonReflectorinstance wrapping the NMS MinecraftServer class.Methods in me.croabeast.common.reflect that return ReflectorModifier and TypeMethodDescriptionReflector.callAsReflector(Object initial, String methodName, Object... objects) Invokes a method on the target object and wraps the result in a newReflectorfor further reflection.Reflector.callAsReflector(String methodName, Object... objects) Invokes a method on the target object and wraps the result in a newReflectorfor further reflection.Reflector.createAsReflector(Object... objects) Creates a new instance of the target class using the provided constructor arguments, and wraps the resulting object in aReflectorfor further reflection.static ReflectorCreates a newReflectorfrom a supplier that provides an object instance.Reflector.getAsReflector(Class<?> clazz) Retrieves a field value (by matching type) and wraps it in a newReflectorfor further reflective operations.Reflector.getAsReflector(Object initial, Class<?> clazz) Retrieves a field value (by matching type) and wraps it in a newReflectorfor further reflective operations.Reflector.getAsReflector(Object initial, String fieldName) Retrieves a field value and wraps it in a newReflectorfor further reflective operations.Reflector.getAsReflector(String fieldName) Retrieves a field value by name and wraps it in a newReflectorfor further reflective operations.static ReflectorCreates a newReflectorfor the specified target class.static ReflectorCreates a newReflectorfor the class with the specified fully-qualified name.static ReflectorReflector.ofCraftBukkit(String className) Creates a newReflectorfor a CraftBukkit class with the given name.static ReflectorCreates a newReflectorfor an NMS (net.minecraft.server) class with the given name.Reflector.setInitial(Supplier<Object> supplier) Sets the supplier for the initial object instance.