mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
70 lines
1.8 KiB
Java
70 lines
1.8 KiB
Java
package com.hbm.items.food;
|
|
|
|
import java.util.List;
|
|
|
|
import com.hbm.items.ModItems;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemFood;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.potion.Potion;
|
|
import net.minecraft.potion.PotionEffect;
|
|
import net.minecraft.world.World;
|
|
|
|
public class ItemLemon extends ItemFood {
|
|
|
|
public ItemLemon(int p_i45339_1_, float p_i45339_2_, boolean p_i45339_3_) {
|
|
super(p_i45339_1_, p_i45339_2_, p_i45339_3_);
|
|
}
|
|
|
|
@Override
|
|
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool)
|
|
{
|
|
if(this == ModItems.lemon) {
|
|
list.add("Eh, good enough.");
|
|
}
|
|
|
|
if(this == ModItems.definitelyfood) {
|
|
list.add("A'right, I got sick and tired of");
|
|
list.add("having to go out, kill things just");
|
|
list.add("to get food and not die, so here is ");
|
|
list.add("my absolutely genius solution:");
|
|
list.add("");
|
|
list.add("Have some edible dirt.");
|
|
}
|
|
|
|
if(this == ModItems.med_ipecac) {
|
|
list.add("Bitter juice that will cause your stomach");
|
|
list.add("to forcefully eject it's contents.");
|
|
}
|
|
|
|
if(this == ModItems.med_ptsd) {
|
|
list.add("This isn't even PTSD mediaction, it's just");
|
|
list.add("Ipecac in a different bottle!");
|
|
}
|
|
|
|
if(this == ModItems.med_schizophrenia) {
|
|
list.add("Makes the voices go away. Just for a while.");
|
|
list.add("");
|
|
list.add("...");
|
|
list.add("Better not take it.");
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
protected void onFoodEaten(ItemStack stack, World world, EntityPlayer player)
|
|
{
|
|
if(this == ModItems.med_ipecac || this == ModItems.med_ptsd) {
|
|
player.addPotionEffect(new PotionEffect(Potion.hunger.id, 50, 49));
|
|
}
|
|
|
|
if(this == ModItems.med_schizophrenia) {
|
|
int o = 0;
|
|
|
|
int z = 5 / o;
|
|
}
|
|
}
|
|
|
|
}
|