cleanup code and refactor xcarry

This commit is contained in:
Bella 2020-03-03 09:44:12 -05:00
parent e8356c97a1
commit 43019ccb28
2 changed files with 20 additions and 20 deletions

View File

@ -1,20 +0,0 @@
package me.zeroeightsix.kami.module.modules.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import me.zeroeightsix.kami.event.events.PacketEvent;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.network.play.client.CPacketCloseWindow;
@Module.Info(name = "XCarry", category = Module.Category.MISC, description = "Store items in crafting slots")
public class XCarry extends Module {
@EventHandler
private Listener<PacketEvent.Send> listener = new Listener<>(event -> {
if(event.getPacket() instanceof CPacketCloseWindow) {
event.cancel();
}
});
}

View File

@ -0,0 +1,20 @@
package me.zeroeightsix.kami.module.modules.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import me.zeroeightsix.kami.event.events.PacketEvent;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.network.play.client.CPacketCloseWindow;
/**
* @author Hamburger2k
*/
@Module.Info(name = "XCarry", category = Module.Category.PLAYER, description = "Store items in crafting slots", showOnArray = Module.ShowOnArray.OFF)
public class XCarry extends Module {
@EventHandler
private Listener<PacketEvent.Send> l = new Listener<>(event -> {
if (event.getPacket() instanceof CPacketCloseWindow) {
event.cancel();
}
});
}