Class ExpandInventory
java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.player.ExpandInventory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanadd(net.minecraft.world.entity.player.Inventory internal, int index, net.minecraft.world.item.ItemStack stack) static booleanadd(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) static booleancontains(net.minecraft.world.entity.player.Inventory internal, KnownTag<net.minecraft.world.item.Item> tag) static booleancontains(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) static voiddropAll(net.minecraft.world.entity.player.Inventory internal) static intfindSlotMatchingItem(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) static intfindSlotMatchingUnusedItem(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) static net.minecraft.world.item.ItemStackgetArmor(net.minecraft.world.entity.player.Inventory internal, int armorIndex) static intgetFreeSlot(net.minecraft.world.entity.player.Inventory internal) static net.minecraft.world.item.ItemStackgetSelected(net.minecraft.world.entity.player.Inventory internal) static intgetSlotWithRemainingSpace(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) static intgetSuitableHotbarSlot(net.minecraft.world.entity.player.Inventory internal) static intgetTimesChanged(net.minecraft.world.entity.player.Inventory internal) static voidhurtArmor(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.damagesource.DamageSource source, float damage, int[] armorSlots) static voidpickSlot(net.minecraft.world.entity.player.Inventory internal, int index) static voidremoveItem(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) static voidsetPickedItem(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack)
-
Constructor Details
-
ExpandInventory
public ExpandInventory()
-
-
Method Details
-
getSelected
public static net.minecraft.world.item.ItemStack getSelected(net.minecraft.world.entity.player.Inventory internal) -
getFreeSlot
public static int getFreeSlot(net.minecraft.world.entity.player.Inventory internal) -
setPickedItem
public static void setPickedItem(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) -
pickSlot
public static void pickSlot(net.minecraft.world.entity.player.Inventory internal, int index) -
findSlotMatchingItem
public static int findSlotMatchingItem(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) -
findSlotMatchingUnusedItem
public static int findSlotMatchingUnusedItem(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) -
getSuitableHotbarSlot
public static int getSuitableHotbarSlot(net.minecraft.world.entity.player.Inventory internal) -
getSlotWithRemainingSpace
public static int getSlotWithRemainingSpace(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) -
add
public static boolean add(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) -
add
public static boolean add(net.minecraft.world.entity.player.Inventory internal, int index, net.minecraft.world.item.ItemStack stack) -
removeItem
public static void removeItem(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) -
getArmor
public static net.minecraft.world.item.ItemStack getArmor(net.minecraft.world.entity.player.Inventory internal, int armorIndex) -
hurtArmor
public static void hurtArmor(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.damagesource.DamageSource source, float damage, int[] armorSlots) -
dropAll
public static void dropAll(net.minecraft.world.entity.player.Inventory internal) -
getTimesChanged
public static int getTimesChanged(net.minecraft.world.entity.player.Inventory internal) -
contains
public static boolean contains(net.minecraft.world.entity.player.Inventory internal, net.minecraft.world.item.ItemStack stack) -
contains
public static boolean contains(net.minecraft.world.entity.player.Inventory internal, KnownTag<net.minecraft.world.item.Item> tag)
-