diff options
author | Merrg1n <[email protected]> | 2022-08-14 01:15:10 +0800 |
---|---|---|
committer | Merrg1n <[email protected]> | 2022-08-14 01:42:38 +0800 |
commit | 78e3592bc1265a1e68336c503aa68971a956a6a6 (patch) | |
tree | 49222ef1e104dafca54d75f3b1f16f7b7d3b8213 /src | |
parent | 94f092015a05d0179e307468c717ad391e455742 (diff) |
rewrite mixin
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/keuin/ohmyvanillamc/DummyLogger.java | 1883 | ||||
-rw-r--r-- | src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java | 34 |
2 files changed, 12 insertions, 1905 deletions
diff --git a/src/main/java/com/keuin/ohmyvanillamc/DummyLogger.java b/src/main/java/com/keuin/ohmyvanillamc/DummyLogger.java deleted file mode 100644 index a64df0b..0000000 --- a/src/main/java/com/keuin/ohmyvanillamc/DummyLogger.java +++ /dev/null @@ -1,1883 +0,0 @@ -package com.keuin.ohmyvanillamc; - -import org.apache.logging.log4j.Level; -import org.apache.logging.log4j.Logger; -import org.apache.logging.log4j.Marker; -import org.apache.logging.log4j.message.EntryMessage; -import org.apache.logging.log4j.message.Message; -import org.apache.logging.log4j.message.MessageFactory; -import org.apache.logging.log4j.util.MessageSupplier; -import org.apache.logging.log4j.util.Supplier; - -public class DummyLogger implements Logger { - - @Override - public void catching(Level level, Throwable t) { - - } - - @Override - public void catching(Throwable t) { - - } - - @Override - public void debug(Marker marker, Message msg) { - - } - - @Override - public void debug(Marker marker, Message msg, Throwable t) { - - } - - @Override - public void debug(Marker marker, MessageSupplier msgSupplier) { - - } - - @Override - public void debug(Marker marker, MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void debug(Marker marker, CharSequence message) { - - } - - @Override - public void debug(Marker marker, CharSequence message, Throwable t) { - - } - - @Override - public void debug(Marker marker, Object message) { - - } - - @Override - public void debug(Marker marker, Object message, Throwable t) { - - } - - @Override - public void debug(Marker marker, String message) { - - } - - @Override - public void debug(Marker marker, String message, Object... params) { - - } - - @Override - public void debug(Marker marker, String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void debug(Marker marker, String message, Throwable t) { - - } - - @Override - public void debug(Marker marker, Supplier<?> msgSupplier) { - - } - - @Override - public void debug(Marker marker, Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void debug(Message msg) { - - } - - @Override - public void debug(Message msg, Throwable t) { - - } - - @Override - public void debug(MessageSupplier msgSupplier) { - - } - - @Override - public void debug(MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void debug(CharSequence message) { - - } - - @Override - public void debug(CharSequence message, Throwable t) { - - } - - @Override - public void debug(Object message) { - - } - - @Override - public void debug(Object message, Throwable t) { - - } - - @Override - public void debug(String message) { - - } - - @Override - public void debug(String message, Object... params) { - - } - - @Override - public void debug(String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void debug(String message, Throwable t) { - - } - - @Override - public void debug(Supplier<?> msgSupplier) { - - } - - @Override - public void debug(Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void debug(Marker marker, String message, Object p0) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void debug(String message, Object p0) { - - } - - @Override - public void debug(String message, Object p0, Object p1) { - - } - - @Override - public void debug(String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void debug(String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void entry() { - - } - - @Override - public void entry(Object... params) { - - } - - @Override - public void error(Marker marker, Message msg) { - - } - - @Override - public void error(Marker marker, Message msg, Throwable t) { - - } - - @Override - public void error(Marker marker, MessageSupplier msgSupplier) { - - } - - @Override - public void error(Marker marker, MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void error(Marker marker, CharSequence message) { - - } - - @Override - public void error(Marker marker, CharSequence message, Throwable t) { - - } - - @Override - public void error(Marker marker, Object message) { - - } - - @Override - public void error(Marker marker, Object message, Throwable t) { - - } - - @Override - public void error(Marker marker, String message) { - - } - - @Override - public void error(Marker marker, String message, Object... params) { - - } - - @Override - public void error(Marker marker, String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void error(Marker marker, String message, Throwable t) { - - } - - @Override - public void error(Marker marker, Supplier<?> msgSupplier) { - - } - - @Override - public void error(Marker marker, Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void error(Message msg) { - - } - - @Override - public void error(Message msg, Throwable t) { - - } - - @Override - public void error(MessageSupplier msgSupplier) { - - } - - @Override - public void error(MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void error(CharSequence message) { - - } - - @Override - public void error(CharSequence message, Throwable t) { - - } - - @Override - public void error(Object message) { - - } - - @Override - public void error(Object message, Throwable t) { - - } - - @Override - public void error(String message) { - - } - - @Override - public void error(String message, Object... params) { - - } - - @Override - public void error(String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void error(String message, Throwable t) { - - } - - @Override - public void error(Supplier<?> msgSupplier) { - - } - - @Override - public void error(Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void error(Marker marker, String message, Object p0) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void error(String message, Object p0) { - - } - - @Override - public void error(String message, Object p0, Object p1) { - - } - - @Override - public void error(String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void error(String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void exit() { - - } - - @Override - public <R> R exit(R result) { - return null; - } - - @Override - public void fatal(Marker marker, Message msg) { - - } - - @Override - public void fatal(Marker marker, Message msg, Throwable t) { - - } - - @Override - public void fatal(Marker marker, MessageSupplier msgSupplier) { - - } - - @Override - public void fatal(Marker marker, MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void fatal(Marker marker, CharSequence message) { - - } - - @Override - public void fatal(Marker marker, CharSequence message, Throwable t) { - - } - - @Override - public void fatal(Marker marker, Object message) { - - } - - @Override - public void fatal(Marker marker, Object message, Throwable t) { - - } - - @Override - public void fatal(Marker marker, String message) { - - } - - @Override - public void fatal(Marker marker, String message, Object... params) { - - } - - @Override - public void fatal(Marker marker, String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void fatal(Marker marker, String message, Throwable t) { - - } - - @Override - public void fatal(Marker marker, Supplier<?> msgSupplier) { - - } - - @Override - public void fatal(Marker marker, Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void fatal(Message msg) { - - } - - @Override - public void fatal(Message msg, Throwable t) { - - } - - @Override - public void fatal(MessageSupplier msgSupplier) { - - } - - @Override - public void fatal(MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void fatal(CharSequence message) { - - } - - @Override - public void fatal(CharSequence message, Throwable t) { - - } - - @Override - public void fatal(Object message) { - - } - - @Override - public void fatal(Object message, Throwable t) { - - } - - @Override - public void fatal(String message) { - - } - - @Override - public void fatal(String message, Object... params) { - - } - - @Override - public void fatal(String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void fatal(String message, Throwable t) { - - } - - @Override - public void fatal(Supplier<?> msgSupplier) { - - } - - @Override - public void fatal(Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void fatal(String message, Object p0) { - - } - - @Override - public void fatal(String message, Object p0, Object p1) { - - } - - @Override - public void fatal(String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void fatal(String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public Level getLevel() { - return null; - } - - @Override - public <MF extends MessageFactory> MF getMessageFactory() { - return null; - } - - @Override - public String getName() { - return null; - } - - @Override - public void info(Marker marker, Message msg) { - - } - - @Override - public void info(Marker marker, Message msg, Throwable t) { - - } - - @Override - public void info(Marker marker, MessageSupplier msgSupplier) { - - } - - @Override - public void info(Marker marker, MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void info(Marker marker, CharSequence message) { - - } - - @Override - public void info(Marker marker, CharSequence message, Throwable t) { - - } - - @Override - public void info(Marker marker, Object message) { - - } - - @Override - public void info(Marker marker, Object message, Throwable t) { - - } - - @Override - public void info(Marker marker, String message) { - - } - - @Override - public void info(Marker marker, String message, Object... params) { - - } - - @Override - public void info(Marker marker, String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void info(Marker marker, String message, Throwable t) { - - } - - @Override - public void info(Marker marker, Supplier<?> msgSupplier) { - - } - - @Override - public void info(Marker marker, Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void info(Message msg) { - - } - - @Override - public void info(Message msg, Throwable t) { - - } - - @Override - public void info(MessageSupplier msgSupplier) { - - } - - @Override - public void info(MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void info(CharSequence message) { - - } - - @Override - public void info(CharSequence message, Throwable t) { - - } - - @Override - public void info(Object message) { - - } - - @Override - public void info(Object message, Throwable t) { - - } - - @Override - public void info(String message) { - - } - - @Override - public void info(String message, Object... params) { - - } - - @Override - public void info(String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void info(String message, Throwable t) { - - } - - @Override - public void info(Supplier<?> msgSupplier) { - - } - - @Override - public void info(Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void info(Marker marker, String message, Object p0) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void info(String message, Object p0) { - - } - - @Override - public void info(String message, Object p0, Object p1) { - - } - - @Override - public void info(String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void info(String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public boolean isDebugEnabled() { - return false; - } - - @Override - public boolean isDebugEnabled(Marker marker) { - return false; - } - - @Override - public boolean isEnabled(Level level) { - return false; - } - - @Override - public boolean isEnabled(Level level, Marker marker) { - return false; - } - - @Override - public boolean isErrorEnabled() { - return false; - } - - @Override - public boolean isErrorEnabled(Marker marker) { - return false; - } - - @Override - public boolean isFatalEnabled() { - return false; - } - - @Override - public boolean isFatalEnabled(Marker marker) { - return false; - } - - @Override - public boolean isInfoEnabled() { - return false; - } - - @Override - public boolean isInfoEnabled(Marker marker) { - return false; - } - - @Override - public boolean isTraceEnabled() { - return false; - } - - @Override - public boolean isTraceEnabled(Marker marker) { - return false; - } - - @Override - public boolean isWarnEnabled() { - return false; - } - - @Override - public boolean isWarnEnabled(Marker marker) { - return false; - } - - @Override - public void log(Level level, Marker marker, Message msg) { - - } - - @Override - public void log(Level level, Marker marker, Message msg, Throwable t) { - - } - - @Override - public void log(Level level, Marker marker, MessageSupplier msgSupplier) { - - } - - @Override - public void log(Level level, Marker marker, MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void log(Level level, Marker marker, CharSequence message) { - - } - - @Override - public void log(Level level, Marker marker, CharSequence message, Throwable t) { - - } - - @Override - public void log(Level level, Marker marker, Object message) { - - } - - @Override - public void log(Level level, Marker marker, Object message, Throwable t) { - - } - - @Override - public void log(Level level, Marker marker, String message) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object... params) { - - } - - @Override - public void log(Level level, Marker marker, String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void log(Level level, Marker marker, String message, Throwable t) { - - } - - @Override - public void log(Level level, Marker marker, Supplier<?> msgSupplier) { - - } - - @Override - public void log(Level level, Marker marker, Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void log(Level level, Message msg) { - - } - - @Override - public void log(Level level, Message msg, Throwable t) { - - } - - @Override - public void log(Level level, MessageSupplier msgSupplier) { - - } - - @Override - public void log(Level level, MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void log(Level level, CharSequence message) { - - } - - @Override - public void log(Level level, CharSequence message, Throwable t) { - - } - - @Override - public void log(Level level, Object message) { - - } - - @Override - public void log(Level level, Object message, Throwable t) { - - } - - @Override - public void log(Level level, String message) { - - } - - @Override - public void log(Level level, String message, Object... params) { - - } - - @Override - public void log(Level level, String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void log(Level level, String message, Throwable t) { - - } - - @Override - public void log(Level level, Supplier<?> msgSupplier) { - - } - - @Override - public void log(Level level, Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void log(Level level, String message, Object p0) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void printf(Level level, Marker marker, String format, Object... params) { - - } - - @Override - public void printf(Level level, String format, Object... params) { - - } - - @Override - public <T extends Throwable> T throwing(Level level, T t) { - return null; - } - - @Override - public <T extends Throwable> T throwing(T t) { - return null; - } - - @Override - public void trace(Marker marker, Message msg) { - - } - - @Override - public void trace(Marker marker, Message msg, Throwable t) { - - } - - @Override - public void trace(Marker marker, MessageSupplier msgSupplier) { - - } - - @Override - public void trace(Marker marker, MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void trace(Marker marker, CharSequence message) { - - } - - @Override - public void trace(Marker marker, CharSequence message, Throwable t) { - - } - - @Override - public void trace(Marker marker, Object message) { - - } - - @Override - public void trace(Marker marker, Object message, Throwable t) { - - } - - @Override - public void trace(Marker marker, String message) { - - } - - @Override - public void trace(Marker marker, String message, Object... params) { - - } - - @Override - public void trace(Marker marker, String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void trace(Marker marker, String message, Throwable t) { - - } - - @Override - public void trace(Marker marker, Supplier<?> msgSupplier) { - - } - - @Override - public void trace(Marker marker, Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void trace(Message msg) { - - } - - @Override - public void trace(Message msg, Throwable t) { - - } - - @Override - public void trace(MessageSupplier msgSupplier) { - - } - - @Override - public void trace(MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void trace(CharSequence message) { - - } - - @Override - public void trace(CharSequence message, Throwable t) { - - } - - @Override - public void trace(Object message) { - - } - - @Override - public void trace(Object message, Throwable t) { - - } - - @Override - public void trace(String message) { - - } - - @Override - public void trace(String message, Object... params) { - - } - - @Override - public void trace(String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void trace(String message, Throwable t) { - - } - - @Override - public void trace(Supplier<?> msgSupplier) { - - } - - @Override - public void trace(Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void trace(Marker marker, String message, Object p0) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void trace(String message, Object p0) { - - } - - @Override - public void trace(String message, Object p0, Object p1) { - - } - - @Override - public void trace(String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void trace(String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public EntryMessage traceEntry() { - return null; - } - - @Override - public EntryMessage traceEntry(String format, Object... params) { - return null; - } - - @Override - public EntryMessage traceEntry(Supplier<?>... paramSuppliers) { - return null; - } - - @Override - public EntryMessage traceEntry(String format, Supplier<?>... paramSuppliers) { - return null; - } - - @Override - public EntryMessage traceEntry(Message message) { - return null; - } - - @Override - public void traceExit() { - - } - - @Override - public <R> R traceExit(R result) { - return null; - } - - @Override - public <R> R traceExit(String format, R result) { - return null; - } - - @Override - public void traceExit(EntryMessage message) { - - } - - @Override - public <R> R traceExit(EntryMessage message, R result) { - return null; - } - - @Override - public <R> R traceExit(Message message, R result) { - return null; - } - - @Override - public void warn(Marker marker, Message msg) { - - } - - @Override - public void warn(Marker marker, Message msg, Throwable t) { - - } - - @Override - public void warn(Marker marker, MessageSupplier msgSupplier) { - - } - - @Override - public void warn(Marker marker, MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void warn(Marker marker, CharSequence message) { - - } - - @Override - public void warn(Marker marker, CharSequence message, Throwable t) { - - } - - @Override - public void warn(Marker marker, Object message) { - - } - - @Override - public void warn(Marker marker, Object message, Throwable t) { - - } - - @Override - public void warn(Marker marker, String message) { - - } - - @Override - public void warn(Marker marker, String message, Object... params) { - - } - - @Override - public void warn(Marker marker, String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void warn(Marker marker, String message, Throwable t) { - - } - - @Override - public void warn(Marker marker, Supplier<?> msgSupplier) { - - } - - @Override - public void warn(Marker marker, Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void warn(Message msg) { - - } - - @Override - public void warn(Message msg, Throwable t) { - - } - - @Override - public void warn(MessageSupplier msgSupplier) { - - } - - @Override - public void warn(MessageSupplier msgSupplier, Throwable t) { - - } - - @Override - public void warn(CharSequence message) { - - } - - @Override - public void warn(CharSequence message, Throwable t) { - - } - - @Override - public void warn(Object message) { - - } - - @Override - public void warn(Object message, Throwable t) { - - } - - @Override - public void warn(String message) { - - } - - @Override - public void warn(String message, Object... params) { - - } - - @Override - public void warn(String message, Supplier<?>... paramSuppliers) { - - } - - @Override - public void warn(String message, Throwable t) { - - } - - @Override - public void warn(Supplier<?> msgSupplier) { - - } - - @Override - public void warn(Supplier<?> msgSupplier, Throwable t) { - - } - - @Override - public void warn(Marker marker, String message, Object p0) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } - - @Override - public void warn(String message, Object p0) { - - } - - @Override - public void warn(String message, Object p0, Object p1) { - - } - - @Override - public void warn(String message, Object p0, Object p1, Object p2) { - - } - - @Override - public void warn(String message, Object p0, Object p1, Object p2, Object p3) { - - } - - @Override - public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4) { - - } - - @Override - public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) { - - } - - @Override - public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) { - - } - - @Override - public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { - - } - - @Override - public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) { - - } - - @Override - public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { - - } -} diff --git a/src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java b/src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java index 5b885a0..95fa8d3 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java +++ b/src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java @@ -1,32 +1,22 @@ package com.keuin.ohmyvanillamc.mixins.fix.disableEntityTrackerEntrySpamming; -import com.keuin.ohmyvanillamc.DummyLogger; import net.minecraft.server.network.EntityTrackerEntry; import org.apache.logging.log4j.Logger; -import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Shadow; -import org.spongepowered.asm.mixin.gen.Accessor; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Redirect; @Mixin(EntityTrackerEntry.class) public class EntityTrackerEntryMixin { - - static { - setLOGGER(new DummyLogger()); - } - - @Shadow - @Final - private static Logger LOGGER; - - @Accessor("LOGGER") - private static Logger getLOGGER() { - throw new AssertionError(); + @Redirect( + method = "sendPackets", + at = @At( + value = "INVOKE", + target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;)V", + remap = false + ) + ) + private void disableWarn(Logger logger, String text) { + // do nothing } - - @Accessor("LOGGER") - private static void setLOGGER(Logger logger) { - throw new AssertionError(); - } - } |