congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ItemFilterWrapper.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
cofh.core.util.filter.ItemFilterWrapper
constructor

Best Java code snippets using cofh.core.util.filter.ItemFilterWrapper.<init> (Showing top 2 results out of 315)

origin: CoFH/ThermalExpansion

public ContainerSatchelFilter(ItemStack stack, InventoryPlayer inventory) {
  player = inventory.player;
  containerIndex = inventory.currentItem;
  filterWrapper = new ItemFilterWrapper(stack, ItemSatchel.getFilterSize(stack));
  filterIndex = ItemSatchel.getLevel(stack);
  int rows = MathHelper.clamp(filterIndex + 1, 1, 3);
  int slots = ItemSatchel.getFilterSize(stack);
  int rowSize = slots / rows;
  int xOffset = 62 - 9 * rowSize;
  int yOffset = 44 - 9 * rows;
  bindPlayerInventory(inventory);
  for (int i = 0; i < slots; i++) {
    addSlotToContainer(new SlotSatchelFilter(filterWrapper, i, xOffset + i % rowSize * 18, yOffset + i / rowSize * 18));
  }
}
origin: CoFH/ThermalExpansion

  return false;
ItemFilterWrapper wrapper = new ItemFilterWrapper(stack, getFilterSize(stack));
ItemStack eventItem = event.getItem().getItem();
cofh.core.util.filterItemFilterWrapper<init>

Popular methods of ItemFilterWrapper

  • markDirty
  • decrStackSize
  • getDirty
  • getFilter
  • getFilterItem
  • getFilterStack
  • getName
  • hasCustomName

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JTable (javax.swing)
  • CodeWhisperer alternatives
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