Added debug
This commit is contained in:
parent
e75cfb903e
commit
a7d1185768
@ -35,6 +35,9 @@ public class Plugin extends PluginBase {
|
||||
public void onEnable() {
|
||||
// Register Blocks
|
||||
Reflections blockReflections = new Reflections("com.cimeyclust.addonreader.resources.custom_blocks");
|
||||
// Log super classes of each class in the package
|
||||
blockReflections.getSubTypesOf(Object.class).forEach(clazz -> getLogger().info(clazz + " extends " + clazz.getSuperclass()));
|
||||
|
||||
Set<Class<? extends CustomBlock>> blocks = blockReflections.getSubTypesOf(Object.class).stream()
|
||||
.filter(clazz -> clazz.getSuperclass() == CustomBlock.class)
|
||||
.map(clazz -> (Class<? extends CustomBlock>) clazz)
|
||||
@ -51,6 +54,9 @@ public class Plugin extends PluginBase {
|
||||
|
||||
// Register Items
|
||||
Reflections itemReflections = new Reflections("com.cimeyclust.addonreader.resources.custom_items");
|
||||
// Log super classes of each class in the package
|
||||
itemReflections.getSubTypesOf(Object.class).forEach(clazz -> getLogger().info(clazz + " extends " + clazz.getSuperclass()));
|
||||
|
||||
Set<Class<? extends CustomItem>> items = itemReflections.getSubTypesOf(Object.class).stream()
|
||||
.filter(clazz -> clazz.getSuperclass() == CustomItem.class)
|
||||
.map(clazz -> (Class<? extends CustomItem>) clazz)
|
||||
@ -67,6 +73,9 @@ public class Plugin extends PluginBase {
|
||||
|
||||
// Register Entities
|
||||
Reflections entityReflections = new Reflections("com.cimeyclust.addonreader.resources.custom_entities");
|
||||
// Log super classes of each class in the package
|
||||
entityReflections.getSubTypesOf(Object.class).forEach(clazz -> getLogger().info(clazz + " extends " + clazz.getSuperclass()));
|
||||
|
||||
Set<Class<? extends Entity>> entities = itemReflections.getSubTypesOf(Object.class).stream()
|
||||
.filter(clazz -> clazz.getSuperclass() == Entity.class)
|
||||
.map(clazz -> (Class<? extends Entity>) clazz)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user