mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 07:55:45 +00:00
Added pure daisy NEI handler and some small tweaks to its recipe API.
This commit is contained in:
1 parent
00cebd4d2f
commit
8cf7d29dad
7 files changed
+147
-3
No files matched your search
@@ -31,6 +31,9 @@ public class RecipePureDaisy {
|
||||
throw new IllegalArgumentException("input must be an oredict String or a Block.");
|
||||
}
|
||||
|
||||
/**
|
||||
* This gets called every tick, please be careful with your checks.
|
||||
*/
|
||||
public boolean matches(World world, int x, int y, int z, SubTileEntity pureDaisy) {
|
||||
Block block = world.getBlock(x, y, z);
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
@@ -42,7 +45,7 @@ public class RecipePureDaisy {
|
||||
return isOreDict(stack, oredict);
|
||||
}
|
||||
|
||||
private boolean isOreDict(ItemStack stack, String entry) {
|
||||
public boolean isOreDict(ItemStack stack, String entry) {
|
||||
for(ItemStack ostack : OreDictionary.getOres(entry)) {
|
||||
ItemStack cstack = ostack.copy();
|
||||
if(cstack.getItemDamage() == Short.MAX_VALUE)
|
||||
|
||||
Reference in new issue
Block a user