Stack Trace Debug Method
This commit is contained in:
parent
661df11ee7
commit
1053646a45
@ -65,6 +65,7 @@ import com.massivecraft.massivecore.comparator.ComparatorCaseInsensitive;
|
|||||||
import com.massivecraft.massivecore.engine.EngineMassiveCoreDatabase;
|
import com.massivecraft.massivecore.engine.EngineMassiveCoreDatabase;
|
||||||
import com.massivecraft.massivecore.engine.EngineMassiveCoreMain;
|
import com.massivecraft.massivecore.engine.EngineMassiveCoreMain;
|
||||||
import com.massivecraft.massivecore.engine.EngineMassiveCoreWorldNameSet;
|
import com.massivecraft.massivecore.engine.EngineMassiveCoreWorldNameSet;
|
||||||
|
import com.massivecraft.massivecore.mixin.Mixin;
|
||||||
import com.massivecraft.massivecore.nms.NmsEntity;
|
import com.massivecraft.massivecore.nms.NmsEntity;
|
||||||
import com.massivecraft.massivecore.predicate.Predicate;
|
import com.massivecraft.massivecore.predicate.Predicate;
|
||||||
import com.massivecraft.massivecore.util.extractor.Extractor;
|
import com.massivecraft.massivecore.util.extractor.Extractor;
|
||||||
@ -523,6 +524,23 @@ public class MUtil
|
|||||||
return ret.toString();
|
return ret.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// STACK TRACE: DEBUG
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
public static void stackTraceDebug(String title)
|
||||||
|
{
|
||||||
|
// Create
|
||||||
|
List<String> messages = new MassiveList<>();
|
||||||
|
|
||||||
|
// Fill
|
||||||
|
messages.add(Txt.titleize(title));
|
||||||
|
messages.addAll(MUtil.getStackTraceStrings(1, true));
|
||||||
|
|
||||||
|
// Message
|
||||||
|
Mixin.messageOne(IdUtil.CONSOLE_ID, messages);
|
||||||
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
// LIST OPERATIONS
|
// LIST OPERATIONS
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
Loading…
Reference in New Issue
Block a user