Example usage for net.minecraftforge.items ItemHandlerHelper calcRedstoneFromInventory

List of usage examples for net.minecraftforge.items ItemHandlerHelper calcRedstoneFromInventory

Introduction

In this page you can find the example usage for net.minecraftforge.items ItemHandlerHelper calcRedstoneFromInventory.

Prototype

public static int calcRedstoneFromInventory(@Nullable IItemHandler inv) 

Source Link

Document

This method uses the standard vanilla algorithm to calculate a comparator output for how "full" the inventory is.

Usage

From source file:de.ellpeck.actuallyadditions.mod.tile.TileEntityInventoryBase.java

@Override
public int getComparatorStrength() {
    return ItemHandlerHelper.calcRedstoneFromInventory(this.slots);
}