Some more work on deduplicating ic2 items/blocks

This commit is contained in:
modmuss50 2016-12-21 17:31:52 +00:00
parent bfcc3a2117
commit 5ff09a7eda
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
8 changed files with 321 additions and 204 deletions

View file

@ -1,5 +1,6 @@
package techreborn.parts.powerCables;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IStringSerializable;
import reborncore.api.power.EnumPowerTier;
@ -38,4 +39,8 @@ public enum EnumStandaloneCableType implements IStringSerializable {
public String getName() {
return friendlyName.toLowerCase();
}
public ItemStack getStack(){
return ItemStandaloneCables.getCableByName(getName());
}
}