congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SlotCustomInventory
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JFrame (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now