Materials now share an ItemID, seemed silly other wise.

This commit is contained in:
AlgorithmX2
2014-01-01 03:01:38 -06:00
parent b94dfb2415
commit 587fb893b4
4 changed files with 232 additions and 15 deletions
+8
View File
@@ -3,6 +3,7 @@ package appeng.items.materials;
import java.util.EnumSet;
import net.minecraft.entity.Entity;
import net.minecraft.util.Icon;
import net.minecraftforge.oredict.OreDictionary;
import appeng.client.render.entity.EntityIds;
import appeng.core.AppEng;
@@ -10,6 +11,8 @@ import appeng.core.features.AEFeature;
import appeng.entity.EntityChargedQuartz;
import appeng.entity.EntitySingularity;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public enum MaterialType
{
@@ -52,6 +55,11 @@ public enum MaterialType
private EnumSet<AEFeature> features;
private Class<? extends Entity> droppedEntity;
// icon for the material.
@SideOnly(Side.CLIENT)
public Icon icon;
public int damageValue = -1;
MaterialType() {
features = EnumSet.of( AEFeature.Core );
}