Class ExpandContainer

java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandContainer

@ZenRegister public class ExpandContainer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canPlaceItem(net.minecraft.world.Container internal, int index, net.minecraft.world.item.ItemStack stack)
     
    static int
    countItem(net.minecraft.world.Container internal, net.minecraft.world.item.Item item)
     
    static int
    countStack(net.minecraft.world.Container internal, IItemStack item)
     
    static int
    getContainerSize(net.minecraft.world.Container internal)
    Gets the size (how many slots) of this Container
    static net.minecraft.world.item.ItemStack
    getItem(net.minecraft.world.Container internal, int index)
    Gets the ItemStack in the given slot.
    static int
    getMaxStackSize(net.minecraft.world.Container internal)
     
    static boolean
    hasAnyOf(net.minecraft.world.Container internal, Set<net.minecraft.world.item.Item> items)
     
    static boolean
    isEmpty(net.minecraft.world.Container internal)
    Checks if this Container is empty.
    static net.minecraft.world.item.ItemStack
    removeItem(net.minecraft.world.Container internal, int var1, int var2)
     
    static net.minecraft.world.item.ItemStack
    removeItemNoUpdate(net.minecraft.world.Container internal, int index)
     
    static void
    setChanged(net.minecraft.world.Container internal)
     
    static void
    setItem(net.minecraft.world.Container internal, int index, net.minecraft.world.item.ItemStack stack)
     
    static void
    startOpen(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player)
     
    static boolean
    stillValid(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player)
     
    static void
    stopOpen(net.minecraft.world.Container internal, net.minecraft.world.entity.player.Player player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static int countStack(net.minecraft.world.Container internal, IItemStack item)
    • hasAnyOf

      public static boolean hasAnyOf(net.minecraft.world.Container internal, Set<net.minecraft.world.item.Item> items)