Create XCarry (#485)

This commit is contained in:
Hamburger2k 2020-03-03 15:37:04 +01:00 committed by GitHub
parent c6cbea8233
commit 3ef521fc9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

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;
@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();
}
});
}