java.lang.Object
meteordevelopment.meteorclient.utils.player.InvUtils

public class InvUtils extends Object
  • Field Details

    • previousSlot

      public static int previousSlot
  • Method Details

    • testInMainHand

      public static boolean testInMainHand(Predicate<net.minecraft.item.ItemStack> predicate)
    • testInMainHand

      public static boolean testInMainHand(net.minecraft.item.Item... items)
    • testInOffHand

      public static boolean testInOffHand(Predicate<net.minecraft.item.ItemStack> predicate)
    • testInOffHand

      public static boolean testInOffHand(net.minecraft.item.Item... items)
    • testInHands

      public static boolean testInHands(Predicate<net.minecraft.item.ItemStack> predicate)
    • testInHands

      public static boolean testInHands(net.minecraft.item.Item... items)
    • testInHotbar

      public static boolean testInHotbar(Predicate<net.minecraft.item.ItemStack> predicate)
    • testInHotbar

      public static boolean testInHotbar(net.minecraft.item.Item... items)
    • findEmpty

      public static FindItemResult findEmpty()
    • findInHotbar

      public static FindItemResult findInHotbar(net.minecraft.item.Item... items)
    • findInHotbar

      public static FindItemResult findInHotbar(Predicate<net.minecraft.item.ItemStack> isGood)
    • find

      public static FindItemResult find(net.minecraft.item.Item... items)
    • find

      public static FindItemResult find(Predicate<net.minecraft.item.ItemStack> isGood)
    • find

      public static FindItemResult find(Predicate<net.minecraft.item.ItemStack> isGood, int start, int end)
    • findFastestTool

      public static FindItemResult findFastestTool(net.minecraft.block.BlockState state)
    • swap

      public static boolean swap(int slot, boolean swapBack)
    • swapBack

      public static boolean swapBack()
    • move

      public static InvUtils.Action move()
    • click

      public static InvUtils.Action click()
    • quickSwap

      public static InvUtils.Action quickSwap()
      When writing code with quickSwap, both to and from should provide the ID of a slot, not the index. From should be the slot in the hotbar, to should be the slot you're switching an item from.
    • shiftClick

      public static InvUtils.Action shiftClick()
    • drop

      public static InvUtils.Action drop()
    • dropHand

      public static void dropHand()