ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/items/metalists/ThePotionRings.java
Michael Hillcox b3a00f8d4e fix: rings
2021-11-21 20:02:08 +00:00

158 lines
3.9 KiB
Java

/*
* 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
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
* © 2015-2017 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.items.metalists;
import net.minecraft.block.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.item.Rarity;
import net.minecraft.potion.Effect;
import net.minecraft.potion.Effects;
@Deprecated
public enum ThePotionRings {
SPEED(
8171462,
Effects.MOVEMENT_SPEED,
0,
1,
10,
false,
Rarity.UNCOMMON,
new ItemStack(Items.SUGAR)
),
//Slowness
HASTE(
14270531,
Effects.DIG_SPEED, // todo: wrong
0,
1,
10,
false,
Rarity.EPIC,
new ItemStack(Items.REPEATER)
),
//Mining Fatigue
STRENGTH(
9643043,
Effects.DAMAGE_BOOST, // TODO: wrong?
0,
1,
10,
false,
Rarity.RARE,
new ItemStack(Items.BLAZE_POWDER)
),
//Health (Not Happening)
//Damage
JUMP_BOOST(
7889559,
Effects.JUMP,
0,
1,
10,
false,
Rarity.RARE,
new ItemStack(Blocks.PISTON)
),
//Nausea
REGEN(
13458603,
Effects.REGENERATION,
0,
1,
50,
true,
Rarity.RARE,
new ItemStack(Items.GHAST_TEAR)
),
RESISTANCE(
10044730,
Effects.DAMAGE_RESISTANCE,
0,
1,
10,
false,
Rarity.EPIC,
new ItemStack(Items.SLIME_BALL)
),
FIRE_RESISTANCE(
14981690,
Effects.FIRE_RESISTANCE,
0,
0,
10,
false,
Rarity.UNCOMMON,
new ItemStack(Items.MAGMA_CREAM)
),
WATER_BREATHING(
3035801,
Effects.WATER_BREATHING,
0,
0,
10,
false,
Rarity.RARE,
new ItemStack(Items.TROPICAL_FISH)
),
INVISIBILITY(
8356754,
Effects.INVISIBILITY,
0,
0,
10,
false,
Rarity.EPIC,
new ItemStack(Items.FERMENTED_SPIDER_EYE)
),
//Blindness
NIGHT_VISION(
2039713,
Effects.NIGHT_VISION,
0,
0,
300,
false,
Rarity.RARE,
new ItemStack(Items.GOLDEN_CARROT)
);
//Hunger
//Weakness
//Poison
//Withering
//Health Boost (Not Happening)
//Absorption (Not Happening)
public final String name;
public final int color;
public final Rarity rarity;
public final Effect effect;
public final int normalAmplifier;
public final int advancedAmplifier;
public final int activeTime;
public final boolean needsWaitBeforeActivating;
public final ItemStack craftingItem;
ThePotionRings(int color, Effect effect, int normalAmplifier, int advancedAmplifier, int activeTime, boolean needsWaitBeforeActivating, Rarity rarity, ItemStack craftingItem) {
this.name = effect.getDisplayName().getString();
this.color = color;
this.rarity = rarity;
this.effect = effect;
this.normalAmplifier = normalAmplifier;
this.advancedAmplifier = advancedAmplifier;
this.activeTime = activeTime;
this.needsWaitBeforeActivating = needsWaitBeforeActivating;
this.craftingItem = craftingItem;
}
}