Big cleanup of logging. Might do some tweaks of the userdev logging, but this should be good for vanilla..

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-01-26 22:18:28 -05:00
1 parent 7d21e5d328
commit 3c55b46ca0
9 files changed
+46 -22

No files matched your search

@@ -23,6 +23,7 @@ import net.minecraftforge.eventbus.api.Event;
import net.minecraftforge.fml.InterModComms;
import net.minecraftforge.fml.ModContainer;
import java.util.Arrays;
import java.util.function.Predicate;
import java.util.stream.Stream;
@@ -42,7 +43,7 @@ public class ModLifecycleEvent extends Event
public final String description()
{
String cn = getClass().getName();
return cn.substring(cn.lastIndexOf('.')+4,cn.length()-5);
return cn.substring(cn.lastIndexOf('.')+1);
}
public Stream<InterModComms.IMCMessage> getIMCStream() {
@@ -52,4 +53,9 @@ public class ModLifecycleEvent extends Event
public Stream<InterModComms.IMCMessage> getIMCStream(Predicate<String> methodFilter) {
return InterModComms.getMessages(this.container.getModId(), methodFilter);
}
@Override
public String toString() {
return description();
}
}