add InventoryUtils
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m33s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m33s
This commit is contained in:
parent
75b0b24176
commit
1baf2709b8
1 changed files with 26 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
|||
package de.com.baseband.client.feature.modules.experimental;
|
||||
|
||||
import de.com.baseband.client.event.events.PacketEvent;
|
||||
import de.com.baseband.client.feature.Feature;
|
||||
import de.com.baseband.client.feature.category.Experimental;
|
||||
import de.com.baseband.client.registry.annotation.Config;
|
||||
import de.com.baseband.client.registry.annotation.Description;
|
||||
import net.minecraft.network.play.client.CPacketCloseWindow;
|
||||
|
||||
@Experimental
|
||||
public class InventoryUtils extends Feature {
|
||||
|
||||
@Config("XCarry")
|
||||
@Description("Allows you to put stuff into your crafting slots!")
|
||||
public boolean xCarry = false;
|
||||
|
||||
public void onPacket(PacketEvent.Send event) {
|
||||
if(xCarry && event.getPacket() instanceof CPacketCloseWindow)
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "InventoryUtils";
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue