mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-17 11:05:32 +00:00
port to forestry 4.2
This commit is contained in:
1 parent
dbc5c1a564
commit
f969f63b66
3697 files changed
+78372
No files matched your search
@@ -0,0 +1,68 @@
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
|
||||
package binnie.extratrees.item;
|
||||
|
||||
import java.util.List;
|
||||
import binnie.extratrees.ExtraTrees;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import binnie.core.item.IItemMisc;
|
||||
|
||||
public enum ExtraTreeItems implements IItemMisc
|
||||
{
|
||||
CarpentryHammer("Fake Hammer", "carpentryHammer"),
|
||||
Sawdust("Sawdust", "sawdust"),
|
||||
Bark("Bark", "bark"),
|
||||
ProvenGear("Proven Gear", "provenGear"),
|
||||
WoodWax("Wood Polish", "woodWax"),
|
||||
Hops("Hops", "hops"),
|
||||
Yeast("Yeast", "yeast"),
|
||||
LagerYeast("Lager Yeast", "yeastLager"),
|
||||
GrainWheat("Wheat Grain", "grainWheat"),
|
||||
GrainBarley("Barley Grain", "grainBarley"),
|
||||
GrainRye("Rye Grain", "grainRye"),
|
||||
GrainCorn("Corn Grain", "grainCorn"),
|
||||
GrainRoasted("Roasted Grain", "grainRoasted"),
|
||||
GlassFitting("Glass Fittings", "glassFitting");
|
||||
|
||||
String name;
|
||||
String iconPath;
|
||||
IIcon icon;
|
||||
|
||||
private ExtraTreeItems(final String name, final String iconPath) {
|
||||
this.name = name;
|
||||
this.iconPath = iconPath;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(final ItemStack stack) {
|
||||
return this.icon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(final IIconRegister register) {
|
||||
this.icon = ExtraTrees.proxy.getIcon(register, this.iconPath);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(final List par3List) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName(final ItemStack stack) {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
return this != ExtraTreeItems.CarpentryHammer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack get(final int i) {
|
||||
return new ItemStack(ExtraTrees.itemMisc, i, this.ordinal());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user