mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
112 lines
3.4 KiB
Java
112 lines
3.4 KiB
Java
package com.hbm.items.special;
|
||
|
||
import java.util.List;
|
||
|
||
import com.hbm.interfaces.IItemHazard;
|
||
import com.hbm.inventory.BreederRecipes;
|
||
import com.hbm.modules.ItemHazardModule;
|
||
import com.hbm.util.ArmorUtil;
|
||
import com.hbm.util.ContaminationUtil;
|
||
import com.hbm.util.I18nUtil;
|
||
|
||
import net.minecraft.entity.Entity;
|
||
import net.minecraft.entity.EntityLivingBase;
|
||
import net.minecraft.entity.player.EntityPlayer;
|
||
import net.minecraft.item.ItemStack;
|
||
import net.minecraft.potion.Potion;
|
||
import net.minecraft.potion.PotionEffect;
|
||
import net.minecraft.util.EnumChatFormatting;
|
||
import net.minecraft.world.World;
|
||
|
||
public class ItemHazard extends ItemCustomLore implements IItemHazard {
|
||
|
||
//AU192 64h α 500.00Rad/s 2 much spice :(
|
||
//PO210 138d α 025.00Rad/s Spicy
|
||
//TH232 14,000,000,000a α 000.10Rad/s
|
||
//U233 160,000a α 005.00Rad/s
|
||
//U235 700,000,000a α 001.00Rad/s
|
||
//U238 4,500,000,000a α 000.25Rad/s
|
||
//NP237 2,100,000a α 002.50Rad/s
|
||
//PU238 88a α 010.00Rad/s Spicy
|
||
//PU239 24,000a α 005.00Rad/s
|
||
//PU240 6,600a α 007.50Rad/s
|
||
|
||
public static final float au198 = 500.0F;
|
||
public static final float po210 = 25.0F;
|
||
public static final float th232 = 0.1F;
|
||
public static final float thf = 1.75F;
|
||
public static final float u = 0.35F;
|
||
public static final float u233 = 5.0F;
|
||
public static final float u235 = 1.0F;
|
||
public static final float u238 = 0.25F;
|
||
public static final float uf = 0.5F;
|
||
public static final float np237 = 2.5F;
|
||
public static final float pu = 7.5F;
|
||
public static final float purg = 6.25F;
|
||
public static final float pu238 = 10.0F;
|
||
public static final float pu239 = 5.0F;
|
||
public static final float pu240 = 7.5F;
|
||
public static final float puf = 4.25F;
|
||
public static final float mox = 2.5F;
|
||
public static final float sa326 = 15.0F;
|
||
public static final float sa327 = 17.5F;
|
||
public static final float saf = 5.85F;
|
||
|
||
public static final float nugget = 0.1F;
|
||
public static final float ingot = 1.0F;
|
||
public static final float block = 10.0F;
|
||
public static final float billet = 0.5F;
|
||
public static final float rod = 0.5F;
|
||
public static final float rod_dual = 1.0F;
|
||
public static final float rod_quad = 2.0F;
|
||
|
||
ItemHazardModule module;
|
||
|
||
public ItemHazard() {
|
||
this.module = new ItemHazardModule();
|
||
}
|
||
|
||
@Override
|
||
public ItemHazardModule getModule() {
|
||
return this.module;
|
||
}
|
||
|
||
@Override
|
||
public void onUpdate(ItemStack stack, World world, Entity entity, int i, boolean b) {
|
||
|
||
if(entity instanceof EntityLivingBase)
|
||
this.module.applyEffects((EntityLivingBase) entity, stack.stackSize, i, b);
|
||
}
|
||
|
||
@Override
|
||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {
|
||
|
||
super.addInformation(stack, player, list, bool);
|
||
this.module.addInformation(stack, player, list, bool);
|
||
}
|
||
|
||
/*
|
||
* DEPRECATED CTORS
|
||
*/
|
||
@Deprecated()
|
||
public ItemHazard(float radiation) {
|
||
this();
|
||
this.module.addRadiation(radiation);
|
||
}
|
||
|
||
@Deprecated()
|
||
public ItemHazard(float radiation, boolean fire) {
|
||
this();
|
||
this.module.addRadiation(radiation);
|
||
if(fire) this.module.addFire(5);
|
||
}
|
||
|
||
@Deprecated()
|
||
public ItemHazard(float radiation, boolean fire, boolean blinding) {
|
||
this();
|
||
this.module.addRadiation(radiation);
|
||
this.module.addBlinding();
|
||
if(fire) this.module.addFire(5);
|
||
}
|
||
}
|