|
@@ -31,8 +31,10 @@ import net.minecraft.inventory.EntityEquipmentSlot;
|
|
import net.minecraft.item.EnumDyeColor;
|
|
import net.minecraft.item.EnumDyeColor;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemArmor.ArmorMaterial;
|
|
import net.minecraft.item.ItemArmor.ArmorMaterial;
|
|
|
|
+import net.minecraft.item.ItemPotion;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.potion.PotionEffect;
|
|
import net.minecraft.potion.PotionEffect;
|
|
|
|
+import net.minecraft.potion.PotionHelper;
|
|
import net.minecraftforge.common.util.EnumHelper;
|
|
import net.minecraftforge.common.util.EnumHelper;
|
|
import net.minecraftforge.registries.IForgeRegistry;
|
|
import net.minecraftforge.registries.IForgeRegistry;
|
|
|
|
|
|
@@ -424,9 +426,22 @@ public class ModItems
|
|
{
|
|
{
|
|
System.out.println("DOING EVIL SHIT");
|
|
System.out.println("DOING EVIL SHIT");
|
|
}
|
|
}
|
|
- register(r, Items.POTIONITEM, new ItemNoGlintPotion());
|
|
|
|
- register(r, Items.SPLASH_POTION, new ItemNoGlintSplashPotion());
|
|
|
|
- register(r, Items.LINGERING_POTION, new ItemNoGlintLingeringPotion());
|
|
|
|
|
|
+ ItemPotion potion = new ItemNoGlintPotion();
|
|
|
|
+ register(r, Items.POTIONITEM, potion);
|
|
|
|
+
|
|
|
|
+ ItemPotion splashPotion = new ItemNoGlintSplashPotion();
|
|
|
|
+ register(r, Items.SPLASH_POTION, splashPotion);
|
|
|
|
+
|
|
|
|
+ ItemPotion lingeringPotion = new ItemNoGlintLingeringPotion();
|
|
|
|
+ register(r, Items.LINGERING_POTION, lingeringPotion);
|
|
|
|
+
|
|
|
|
+ PotionHelper.addContainer(potion);
|
|
|
|
+ PotionHelper.addContainer(splashPotion);
|
|
|
|
+ PotionHelper.addContainer(lingeringPotion);
|
|
|
|
+
|
|
|
|
+ PotionHelper.addContainerRecipe(potion, Items.GUNPOWDER, Items.SPLASH_POTION);
|
|
|
|
+ PotionHelper.addContainerRecipe(splashPotion, Items.DRAGON_BREATH, Items.LINGERING_POTION);
|
|
|
|
+
|
|
for(int i = 0; i < 10; i++)
|
|
for(int i = 0; i < 10; i++)
|
|
{
|
|
{
|
|
System.out.println("DONE WITH EVIL SHIT");
|
|
System.out.println("DONE WITH EVIL SHIT");
|