This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Interface v2 */ | |
// // | |
// // | |
// // | |
// // | |
/* Gemaakt door Marinus Leeuwerik */ | |
#include <IRremote.h> | |
#include <LiquidCrystal.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package code.MarinusLeeuwerik.utils; | |
/** | |
* Copyright (c) 2014 Xiaomao Chen @ IvyBits | |
* All rights reserved. | |
* | |
* (Modified version by MarinusLeeuwerik) | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* 1. Redistributions of source code must retain the above copyright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package code.MarinusLeeuwerik.utils | |
public class GetItemAmount { | |
public int getItemAmount(Inventory inventory, Material... search) { | |
List<Material> wanted = Arrays.asList(search); | |
int amount = 0; | |
for(ItemStack item : inventory.getContents()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package code.MarinusLeeuwerik.utils; | |
/** | |
* Copyright (c) 2014 Marinus Leeuwerik | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. |