Class InvUtils
java.lang.Object
meteordevelopment.meteorclient.utils.player.InvUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic InvUtils.Actionclick()static InvUtils.Actiondrop()static voiddropHand()static FindItemResultstatic FindItemResultstatic FindItemResultfind(net.minecraft.item.Item... items) static FindItemResultstatic FindItemResultfindFastestTool(net.minecraft.block.BlockState state) static FindItemResultfindInHotbar(Predicate<net.minecraft.item.ItemStack> isGood) static FindItemResultfindInHotbar(net.minecraft.item.Item... items) static InvUtils.Actionmove()static InvUtils.ActionWhen writing code with quickSwap, both to and from should provide the ID of a slot, not the index.static InvUtils.Actionstatic booleanswap(int slot, boolean swapBack) static booleanswapBack()static booleantestInHands(Predicate<net.minecraft.item.ItemStack> predicate) static booleantestInHands(net.minecraft.item.Item... items) static booleantestInHotbar(Predicate<net.minecraft.item.ItemStack> predicate) static booleantestInHotbar(net.minecraft.item.Item... items) static booleantestInMainHand(Predicate<net.minecraft.item.ItemStack> predicate) static booleantestInMainHand(net.minecraft.item.Item... items) static booleantestInOffHand(Predicate<net.minecraft.item.ItemStack> predicate) static booleantestInOffHand(net.minecraft.item.Item... items)
-
Field Details
-
previousSlot
public static int previousSlot
-
-
Method Details
-
testInMainHand
-
testInMainHand
public static boolean testInMainHand(net.minecraft.item.Item... items) -
testInOffHand
-
testInOffHand
public static boolean testInOffHand(net.minecraft.item.Item... items) -
testInHands
-
testInHands
public static boolean testInHands(net.minecraft.item.Item... items) -
testInHotbar
-
testInHotbar
public static boolean testInHotbar(net.minecraft.item.Item... items) -
findEmpty
-
findInHotbar
-
findInHotbar
-
find
-
find
-
find
public static FindItemResult find(Predicate<net.minecraft.item.ItemStack> isGood, int start, int end) -
findFastestTool
-
swap
public static boolean swap(int slot, boolean swapBack) -
swapBack
public static boolean swapBack() -
move
-
click
-
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
-
drop
-
dropHand
public static void dropHand()
-