Codota Logo
SlotCustomInventory
Code IndexAdd Codota to your IDE (free)

How to use
SlotCustomInventory
in
cofh.core.gui.slot

Best Java code snippets using cofh.core.gui.slot.SlotCustomInventory (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: CoFH/CoFHCore

@Override
public void putStack(ItemStack stack) {
  customInv.getInventorySlots(inventoryIndex)[getSlotIndex()] = stack;
  onSlotChanged();
}
origin: CoFH/CoFHCore

@Override
public int getSlotStackLimit() {
  return customInv.getSlotStackLimit(getSlotIndex());
}
origin: CoFH/ThermalExpansion

public ContainerPrecipitator(InventoryPlayer inventory, TileEntity tile) {
  super(inventory, tile);
  myTile = (TilePrecipitator) tile;
  addSlotToContainer(new SlotRemoveOnly(myTile, 0, 134, 26));
  addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53));
  /* Custom Inventory */
  addSlotToContainer(new SlotCustomInventory(myTile, 0, null, 0, 89, 53, false));
}
origin: CoFH/CoFHCore

@Override
public void onSlotChanged() {
  customInv.onSlotUpdate(getSlotIndex());
}
origin: CoFH/ThermalExpansion

public ContainerExtruder(InventoryPlayer inventory, TileEntity tile) {
  super(inventory, tile);
  myTile = (TileExtruder) tile;
  addSlotToContainer(new SlotRemoveOnly(myTile, 0, 134, 26));
  addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53));
  /* Custom Inventory */
  addSlotToContainer(new SlotCustomInventory(myTile, 0, null, 0, 89, 53, false));
}
origin: CoFH/CoFHCore

@Override
public ItemStack getStack() {
  return customInv.getInventorySlots(inventoryIndex)[getSlotIndex()];
}
origin: CoFH/CoFHCore

@Override
public ItemStack decrStackSize(int amount) {
  if (customInv.getInventorySlots(inventoryIndex)[getSlotIndex()].isEmpty()) {
    return ItemStack.EMPTY;
  }
  if (customInv.getInventorySlots(inventoryIndex)[getSlotIndex()].getCount() <= amount) {
    amount = customInv.getInventorySlots(inventoryIndex)[getSlotIndex()].getCount();
  }
  ItemStack stack = customInv.getInventorySlots(inventoryIndex)[getSlotIndex()].splitStack(amount);
  if (customInv.getInventorySlots(inventoryIndex)[getSlotIndex()].getCount() <= 0) {
    customInv.getInventorySlots(inventoryIndex)[getSlotIndex()] = ItemStack.EMPTY;
  }
  return stack;
}
cofh.core.gui.slotSlotCustomInventory

Most used methods

  • <init>
  • getSlotIndex
  • onSlotChanged

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • JComboBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now