Added debug
This commit is contained in:
parent
d6858c293d
commit
8b651a29a5
@ -10,6 +10,7 @@ import cn.nukkit.item.Item;
|
|||||||
import cn.nukkit.item.customitem.CustomItem;
|
import cn.nukkit.item.customitem.CustomItem;
|
||||||
import cn.nukkit.plugin.PluginBase;
|
import cn.nukkit.plugin.PluginBase;
|
||||||
import org.reflections.Reflections;
|
import org.reflections.Reflections;
|
||||||
|
import org.reflections.scanners.TypeAnnotationsScanner;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
@ -35,6 +36,10 @@ public class Plugin extends PluginBase {
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
// Register Blocks
|
// Register Blocks
|
||||||
Reflections blockReflections = new Reflections("com.cimeyclust.addonreader.resources.custom_blocks");
|
Reflections blockReflections = new Reflections("com.cimeyclust.addonreader.resources.custom_blocks");
|
||||||
|
|
||||||
|
int count = blockReflections.getStore().get(TypeAnnotationsScanner.class.getSimpleName()).keySet().size();
|
||||||
|
System.out.println("Number of classes found: " + count);
|
||||||
|
|
||||||
// Log super classes of each class in the package
|
// Log super classes of each class in the package
|
||||||
blockReflections.getSubTypesOf(Object.class).forEach(clazz -> System.out.println(clazz + " extends " + clazz.getSuperclass()));
|
blockReflections.getSubTypesOf(Object.class).forEach(clazz -> System.out.println(clazz + " extends " + clazz.getSuperclass()));
|
||||||
|
|
||||||
@ -94,7 +99,7 @@ public class Plugin extends PluginBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("§aCustomResources has been enabled!");
|
System.out.println("CustomResources has been enabled!");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void tickComponents(Entity entity) {
|
public static void tickComponents(Entity entity) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user