src/main/java/com/github/klikli_dev/occultism/util/StorageUtil.java
/**
     * Drops all items of the given tile entity.
     * Tile entity <bold>must</bold> return a combined item handler for direction null.
     *
     * @param tileEntity the tile entity to drop contents for.
     */
Drops all items of the given tile entity.
Tile entity must return a combined item handler for direction null.

@param tileEntity the tile entity to drop contents for.
Drops all items of the given tile entity . Tile entity must return a combined item handler for direction null . @param tileEntity the tile entity to drop contents for .
public static void dropInventoryItems(TileEntity tileEntity) {
        tileEntity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY).ifPresent(handler -> {
            dropInventoryItems(tileEntity.getLevel(), tileEntity.getBlockPos(), handler);
        });
    }
public static void dropInventoryItems ( TileEntity tileEntity ) { tileEntity . getCapability ( CapabilityItemHandler . ITEM_HANDLER_CAPABILITY ) . ifPresent ( handler -> { dropInventoryItems ( tileEntity . getLevel ( ) , tileEntity . getBlockPos ( ) , handler ) ; } ) ; }
Drops all items of the given tile entity.
Drops all items of the given tile entity .