From 6e8598c180f96a65c0c101be72e6d0fa53195404 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Tue, 5 Nov 2024 17:51:51 +0800 Subject: [PATCH] send over. --- docs/apidoc/reflect.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/apidoc/reflect.md b/docs/apidoc/reflect.md index 0e0c31b..5e3999e 100644 --- a/docs/apidoc/reflect.md +++ b/docs/apidoc/reflect.md @@ -16,6 +16,9 @@ Methods: - This method is used to find a class by its id. - For example, to get the `Minecraft` class, you can use `ModAPI.reflect.getClassById("Minecraft")` - This runs slower than `getClassById` because it has to filter through all classes. Make sure to cache the result rather than calling it over and over again. +- `ModAPI.reflect.getSuper(rClass: ReflectClass, filter: Function) : Function` + - Gets a super function from a reflect class. This is used to extend build in classes, like `Block`. + - For an example, see lines ### ReflectClass Definition