mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 21:19:46 +00:00
Added the Pyroclast Pendant.
This commit is contained in:
1 parent
9f164cb879
commit
05e10d48c0
7 files changed
+56
No files matched your search
@@ -96,6 +96,7 @@ public final class BotaniaCreativeTab extends CreativeTabs {
|
||||
addItem(ModItems.travelBelt);
|
||||
addItem(ModItems.knockbackBelt);
|
||||
addItem(ModItems.icePendant);
|
||||
addItem(ModItems.lavaPendant);
|
||||
|
||||
addItem(ModItems.manaTablet);
|
||||
addItem(ModItems.manaMirror);
|
||||
|
||||
@@ -28,6 +28,7 @@ import vazkii.botania.common.item.equipment.bauble.ItemGreaterAuraRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemGreaterManaRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemIcePendant;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemKnockbackBelt;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemLavaPendant;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemManaRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemTinyPlanet;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemTravelBelt;
|
||||
@@ -82,6 +83,7 @@ public final class ModItems {
|
||||
public static Item travelBelt;
|
||||
public static Item knockbackBelt;
|
||||
public static Item icePendant;
|
||||
public static Item lavaPendant;
|
||||
|
||||
public static void init() {
|
||||
lexicon = new ItemLexicon();
|
||||
@@ -125,6 +127,7 @@ public final class ModItems {
|
||||
travelBelt = new ItemTravelBelt();
|
||||
knockbackBelt = new ItemKnockbackBelt();
|
||||
icePendant = new ItemIcePendant();
|
||||
lavaPendant = new ItemLavaPendant();
|
||||
|
||||
OreDictionary.registerOre(LibOreDict.LEXICON, lexicon);
|
||||
for(int i = 0; i < 16; i++) {
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under a
|
||||
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
||||
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
||||
*
|
||||
* File Created @ [Apr 26, 2014, 11:23:27 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.item.equipment.bauble;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
import vazkii.botania.common.lib.LibObfuscation;
|
||||
import baubles.api.BaubleType;
|
||||
import cpw.mods.fml.relauncher.ReflectionHelper;
|
||||
|
||||
public class ItemLavaPendant extends ItemBauble {
|
||||
|
||||
public ItemLavaPendant() {
|
||||
super(LibItemNames.LAVA_PENDANT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEquippedOrLoadedIntoWorld(ItemStack stack, EntityLivingBase player) {
|
||||
setImmunity(player, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUnequipped(ItemStack stack, EntityLivingBase player) {
|
||||
setImmunity(player, false);
|
||||
}
|
||||
|
||||
private void setImmunity(Entity entity, boolean immune) {
|
||||
ReflectionHelper.setPrivateValue(Entity.class, entity, immune, LibObfuscation.IS_IMMUNE_TO_FIRE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaubleType getBaubleType(ItemStack itemstack) {
|
||||
return BaubleType.AMULET;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -56,6 +56,7 @@ public final class LibItemNames {
|
||||
public static final String TRAVEL_BELT = LibResources.PREFIX_MOD + "travelBelt";
|
||||
public static final String KNOCKBACK_BELT = LibResources.PREFIX_MOD + "knockbackBelt";
|
||||
public static final String ICE_PENDANT = LibResources.PREFIX_MOD + "icePendant";
|
||||
public static final String LAVA_PENDANT = LibResources.PREFIX_MOD + "lavaPendant";
|
||||
|
||||
public static final String[] LENS_NAMES = new String[] {
|
||||
LibResources.PREFIX_MOD + "lensNormal",
|
||||
|
||||
@@ -31,4 +31,7 @@ public final class LibObfuscation {
|
||||
// ThreadDownloadImageData
|
||||
public static final String[] TEXTURE_UPLOADED = new String[] { "textureUploaded", "field_110559_g", "i" };
|
||||
public static final String[] BUFFERED_IMAGE = new String[] { "bufferedImage", "field_110560_d", "g" };
|
||||
|
||||
// Entity
|
||||
public static final String[] IS_IMMUNE_TO_FIRE = new String[] { "isImmuneToFire", "field_70178_ae", "ag" };
|
||||
}
|
||||
@@ -296,6 +296,7 @@ item.botania:auraRingGreater.name=Greater Band of Aura
|
||||
item.botania:travelBelt.name=Soujourner's Sash
|
||||
item.botania:knockbackBelt.name=Tectonic Girdle
|
||||
item.botania:icePendant.name=Snowflake Pendant
|
||||
item.botania:lavaPendant.name=Pyroclast Pendant
|
||||
|
||||
# GUI TEXT
|
||||
botania.gui.lexicon.header=Lexica Botania Index - Pick which category you would like to study:
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
Reference in new issue
Block a user