ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/items/metalists/ThePotionRings.java

66 lines
3.2 KiB
Java
Raw Normal View History

2015-08-29 14:33:25 +02:00
/*
* This file ("ThePotionRings.java") is part of the Actually Additions Mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-01-03 16:05:51 +01:00
* http://ellpeck.de/actaddlicense/
2015-08-29 14:33:25 +02:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2016-01-03 16:05:51 +01:00
* © 2016 Ellpeck
2015-08-29 14:33:25 +02:00
*/
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.items.metalists;
2015-03-31 20:37:55 +02:00
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
2016-03-18 23:47:22 +01:00
import net.minecraft.init.MobEffects;
2015-03-31 20:37:55 +02:00
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
2015-03-31 20:37:55 +02:00
public enum ThePotionRings{
2015-03-31 20:37:55 +02:00
2016-03-18 23:47:22 +01:00
SPEED(MobEffects.moveSpeed.getName(), 8171462, MobEffects.moveSpeed, 0, 1, 10, false, EnumRarity.UNCOMMON, new ItemStack(Items.sugar)),
//Slowness
2016-03-18 23:47:22 +01:00
HASTE(MobEffects.digSpeed.getName(), 14270531, MobEffects.digSpeed, 0, 1, 10, false, EnumRarity.EPIC, new ItemStack(Items.repeater)),
//Mining Fatigue
2016-03-18 23:47:22 +01:00
STRENGTH(MobEffects.damageBoost.getName(), 9643043, MobEffects.damageBoost, 0, 1, 10, false, EnumRarity.RARE, new ItemStack(Items.blaze_powder)),
2015-03-31 20:37:55 +02:00
//Health (Not Happening)
//Damage
2016-03-18 23:47:22 +01:00
JUMP_BOOST(MobEffects.jump.getName(), 7889559, MobEffects.jump, 0, 1, 10, false, EnumRarity.RARE, new ItemStack(Blocks.piston)),
//Nausea
2016-03-18 23:47:22 +01:00
REGEN(MobEffects.regeneration.getName(), 13458603, MobEffects.regeneration, 0, 1, 50, true, EnumRarity.RARE, new ItemStack(Items.ghast_tear)),
RESISTANCE(MobEffects.resistance.getName(), 10044730, MobEffects.resistance, 0, 1, 10, false, EnumRarity.EPIC, new ItemStack(Items.slime_ball)),
FIRE_RESISTANCE(MobEffects.fireResistance.getName(), 14981690, MobEffects.fireResistance, 0, 0, 10, false, EnumRarity.UNCOMMON, new ItemStack(Items.magma_cream)),
WATER_BREATHING(MobEffects.waterBreathing.getName(), 3035801, MobEffects.waterBreathing, 0, 0, 10, false, EnumRarity.RARE, new ItemStack(Items.fish, 1, 3)),
INVISIBILITY(MobEffects.invisibility.getName(), 8356754, MobEffects.invisibility, 0, 0, 10, false, EnumRarity.EPIC, new ItemStack(Items.fermented_spider_eye)),
//Blindness
2016-03-18 23:47:22 +01:00
NIGHT_VISION(MobEffects.nightVision.getName(), 2039713, MobEffects.nightVision, 0, 0, 300, false, EnumRarity.RARE, new ItemStack(Items.golden_carrot));
//Hunger
//Weakness
//Poison
//Withering
2015-03-31 20:37:55 +02:00
//Health Boost (Not Happening)
//Absorption (Not Happening)
public final String name;
public final int color;
public final EnumRarity rarity;
public final int effectID;
public final int normalAmplifier;
public final int advancedAmplifier;
public final int activeTime;
public final boolean needsWaitBeforeActivating;
public final ItemStack craftingItem;
2016-03-18 23:47:22 +01:00
ThePotionRings(String name, int color, Potion effect, int normalAmplifier, int advancedAmplifier, int activeTime, boolean needsWaitBeforeActivating, EnumRarity rarity, ItemStack craftingItem){
2015-03-31 20:37:55 +02:00
this.name = name;
this.color = color;
this.rarity = rarity;
2016-03-18 23:47:22 +01:00
this.effectID = Potion.getIdFromPotion(effect);
2015-03-31 20:37:55 +02:00
this.normalAmplifier = normalAmplifier;
this.advancedAmplifier = advancedAmplifier;
this.activeTime = activeTime;
this.needsWaitBeforeActivating = needsWaitBeforeActivating;
this.craftingItem = craftingItem;
}
}