The return of achievements

- Re-added achievements
- Organised all imports (seemed all over the place)
- Formatted all code (seemed very combined, used the TinkerStyle)
This commit is contained in:
Arthur Uzulin committed 2014-09-09 18:30:15 +10:00
1 parent ae2d8d6e4d
commit 80efde613a
419 files changed
+2406 -4144

No files matched your search

@@ -1,11 +1,9 @@
package tconstruct.library.tools;
import net.minecraft.init.Items;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import java.util.List;
public abstract class CustomMaterial
{
public final int materialID;
@@ -35,13 +33,13 @@ public abstract class CustomMaterial
/**
* Wether an itemstack is a stack of this custom material or not.
*/
public boolean matches(ItemStack stack)
public boolean matches (ItemStack stack)
{
if(this.oredict != null)
if (this.oredict != null)
{
List<ItemStack> items = OreDictionary.getOres(oredict);
for(ItemStack item : items)
if(OreDictionary.itemMatches(item, stack, false))
for (ItemStack item : items)
if (OreDictionary.itemMatches(item, stack, false))
return true;
return false;
}