forked from RepoMirrors/kami-blue
cleanup code and refactor xcarry
This commit is contained in:
parent
e8356c97a1
commit
43019ccb28
|
@ -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();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue