Class ExpandContainer
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanPlaceItem(net.minecraft.world.Container internal, int index, net.minecraft.world.item.ItemStack stack) static intcountItem(net.minecraft.world.Container internal, net.minecraft.world.item.Item item) static intcountStack(net.minecraft.world.Container internal, IItemStack item) static intgetContainerSize(net.minecraft.world.Container internal) Gets the size (how many slots) of this Containerstatic net.minecraft.world.item.ItemStackgetItem(net.minecraft.world.Container internal, int index) Gets the ItemStack in the given slot.static intgetMaxStackSize(net.minecraft.world.Container internal) static booleanstatic booleanisEmpty(net.minecraft.world.Container internal) Checks if this Container is empty.static net.minecraft.world.item.ItemStackremoveItem(net.minecraft.world.Container internal, int var1, int var2) static net.minecraft.world.item.ItemStackremoveItemNoUpdate(net.minecraft.world.Container internal, int index) static voidsetChanged(net.minecraft.world.Container internal) static voidsetItem(net.minecraft.world.Container internal, int index, net.minecraft.world.item.ItemStack stack) static voidstartOpen(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player) static booleanstillValid(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player) static voidstopOpen(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player)
-
Constructor Details
-
ExpandContainer
public ExpandContainer()
-
-
Method Details
-
getContainerSize
public static int getContainerSize(net.minecraft.world.Container internal) Gets the size (how many slots) of this Container- Returns:
- The amount of slots this Container has.
-
isEmpty
public static boolean isEmpty(net.minecraft.world.Container internal) Checks if this Container is empty.- Returns:
- True if empty. False otherwise.
-
getItem
public static net.minecraft.world.item.ItemStack getItem(net.minecraft.world.Container internal, int index) Gets the ItemStack in the given slot.- Parameters:
index- The slot index to get.- Returns:
- the ItemStack in the given slot.
-
removeItem
public static net.minecraft.world.item.ItemStack removeItem(net.minecraft.world.Container internal, int var1, int var2) -
removeItemNoUpdate
public static net.minecraft.world.item.ItemStack removeItemNoUpdate(net.minecraft.world.Container internal, int index) -
setItem
public static void setItem(net.minecraft.world.Container internal, int index, net.minecraft.world.item.ItemStack stack) -
getMaxStackSize
public static int getMaxStackSize(net.minecraft.world.Container internal) -
setChanged
public static void setChanged(net.minecraft.world.Container internal) -
stillValid
public static boolean stillValid(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player) -
startOpen
public static void startOpen(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player) -
stopOpen
public static void stopOpen(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player) -
canPlaceItem
public static boolean canPlaceItem(net.minecraft.world.Container internal, int index, net.minecraft.world.item.ItemStack stack) -
countItem
public static int countItem(net.minecraft.world.Container internal, net.minecraft.world.item.Item item) -
countStack
-
hasAnyOf
public static boolean hasAnyOf(net.minecraft.world.Container internal, Set<net.minecraft.world.item.Item> items)
-