add temporary test for items

This commit is contained in:
Bella 2020-03-24 15:28:14 -04:00
parent e63334182a
commit 300ca9501d
No known key found for this signature in database
GPG Key ID: 815562EA23BFE344
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package me.zeroeightsix.kami.module.modules.gui;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.init.Items;
@Module.Info(name = "TestForItems", category = Module.Category.GUI, description = "Hides the armour on selected entities", showOnArray = Module.ShowOnArray.ON)
public class TestForItems extends Module {
public void onUpdate() {
for (int i = 0; i < 100; i++) {
if (mc.player.inventory.getStackInSlot(i).getItem() == Items.IRON_INGOT) {
Command.sendChatMessage(i + "");
break;
}
}
}
}