mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 20:42:12 +00:00
-Added temporary obisidian golem
This commit is contained in:
1 parent
ebd30deab2
commit
222c7eb0c8
5 files changed
+53
No files matched your search
@@ -0,0 +1,49 @@
|
||||
package makeo.gadomancy.common.entities.golems.types;
|
||||
|
||||
import makeo.gadomancy.api.golems.AdditionalGolemType;
|
||||
import makeo.gadomancy.common.Gadomancy;
|
||||
import makeo.gadomancy.common.utils.SimpleResourceLocation;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
* <p/>
|
||||
* Created by makeo @ 21.12.2015 19:29
|
||||
*/
|
||||
public class ObsidianGolemType extends AdditionalGolemType {
|
||||
public ObsidianGolemType() {
|
||||
super(50, 15, 0.2F, true, 2, 48, 100, 6);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName() {
|
||||
return "item.ItemGolemPlacer.obsidian.name";
|
||||
}
|
||||
|
||||
private IIcon icon;
|
||||
@Override
|
||||
public void registerIcons(IIconRegister ir) {
|
||||
icon = ir.registerIcon(Gadomancy.MODID + ":golem_obsidian");
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack stack, int pass) {
|
||||
return icon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceLocation getEntityTexture() {
|
||||
return new SimpleResourceLocation("models/golem_obsidian.png");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceLocation getInvSlotTexture() {
|
||||
return new SimpleResourceLocation("gui/default_slot.png");
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import makeo.gadomancy.api.golems.cores.AdditionalGolemCore;
|
||||
import makeo.gadomancy.common.Gadomancy;
|
||||
import makeo.gadomancy.common.entities.golems.cores.BodyguardGolemCore;
|
||||
import makeo.gadomancy.common.entities.golems.cores.BreakGolemCore;
|
||||
import makeo.gadomancy.common.entities.golems.types.ObsidianGolemType;
|
||||
import makeo.gadomancy.common.entities.golems.types.SilverwoodGolemType;
|
||||
import makeo.gadomancy.common.entities.golems.upgrades.GolemUpgrade;
|
||||
import makeo.gadomancy.common.entities.golems.upgrades.GolemUpgradeRunicShield;
|
||||
@@ -28,12 +29,14 @@ public class RegisteredGolemStuff {
|
||||
public static GolemUpgradeRunicShield upgradeRunicShield;
|
||||
|
||||
public static SilverwoodGolemType typeSilverwood;
|
||||
public static ObsidianGolemType typeObsidian;
|
||||
|
||||
public static AdditionalGolemCore breakCore;
|
||||
public static AdditionalGolemCore bodyguardCore;
|
||||
|
||||
public static void init() {
|
||||
typeSilverwood = registerGolemType("SILVERWOOD", new SilverwoodGolemType());
|
||||
typeObsidian = registerGolemType("OBSIDIAN", new ObsidianGolemType());
|
||||
|
||||
breakCore = registerGolemCore("breakCore", new BreakGolemCore());
|
||||
bodyguardCore = registerGolemCore("bodyguardCore", new BodyguardGolemCore());
|
||||
|
||||
Reference in new issue
Block a user