This commit is contained in:
modmuss50 2017-08-30 21:25:13 +01:00
parent efbd5542b4
commit 20e9276bd9
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
4 changed files with 42 additions and 6 deletions

View file

@ -30,6 +30,7 @@ import net.minecraftforge.fluids.FluidRegistry;
import org.apache.commons.lang3.Validate;
import reborncore.common.util.StringUtils;
public class ItemCells {
public static ItemStack getCellByName(String name, int count) {
if (name.equalsIgnoreCase("empty") || name.equalsIgnoreCase("cell")) {
@ -50,4 +51,8 @@ public class ItemCells {
return getCellByName(name, 1);
}
public static boolean isCellEqual(ItemStack stack1, ItemStack stack2){
return stack1.getTagCompound().equals(stack2.getTagCompound());
}
}