Controllable mixin core features w/ Update LegacyLauncher to 1.22
This commit is contained in:
@@ -20,7 +20,7 @@ import net.minecraft.server.ICommandListener;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
@Mixin(value = CommandBan.class, remap = false)
|
||||
public class MixinCommandBan {
|
||||
public abstract class MixinCommandBan {
|
||||
@Overwrite
|
||||
public void execute(MinecraftServer server, ICommandListener sender, String[] args) throws CommandException {
|
||||
if (args.length >= 1 && args[0].length() > 1) {
|
||||
|
||||
@@ -18,7 +18,7 @@ import net.minecraft.server.IpBanEntry;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
@Mixin(value = CommandBanIp.class, remap = false)
|
||||
public class MixinCommandBanIp {
|
||||
public abstract class MixinCommandBanIp {
|
||||
@Overwrite // PAIL: banIp
|
||||
protected void a(MinecraftServer server, ICommandListener sender, String args, @Nullable String banReason) {
|
||||
// Akarin start - modify message
|
||||
|
||||
@@ -14,7 +14,7 @@ import net.minecraft.server.ICommandListener;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
@Mixin(value = CommandKick.class, remap = false)
|
||||
public class MixinCommandKick {
|
||||
public abstract class MixinCommandKick {
|
||||
@Overwrite
|
||||
public void execute(MinecraftServer server, ICommandListener sender, String[] args) throws CommandException {
|
||||
if (args.length > 0 && args[0].length() > 1) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import me.nallar.whocalled.WhoCalled;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
@Mixin(value = CraftServer.class, remap = false)
|
||||
public class MixinCraftServer {
|
||||
public abstract class MixinCraftServer {
|
||||
@Shadow @Final @Mutable private String serverName;
|
||||
@Shadow @Final protected MinecraftServer console;
|
||||
private boolean needApplyServerName = true;
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.Overwrite;
|
||||
import net.minecraft.server.MCUtil;
|
||||
|
||||
@Mixin(value = MCUtil.class, remap = false)
|
||||
public class MixinMCUtil {
|
||||
public abstract class MixinMCUtil {
|
||||
@Overwrite
|
||||
public static <T> T ensureMain(String reason, Supplier<T> run) {
|
||||
return run.get();
|
||||
|
||||
@@ -16,7 +16,7 @@ import net.minecraft.server.WorldGenBigTree;
|
||||
* Fixes MC-128547(https://bugs.mojang.com/browse/MC-128547)
|
||||
*/
|
||||
@Mixin(value = WorldGenBigTree.class, remap = false)
|
||||
public class WeakBigTree {
|
||||
public abstract class WeakBigTree {
|
||||
@Shadow(aliases = "l") private World worldReference;
|
||||
|
||||
@Inject(method = "generate", at = @At("RETURN"))
|
||||
|
||||
Reference in New Issue
Block a user