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

158 lines
3.9 KiB
Java
Raw Normal View History

2015-08-29 14:33:25 +02:00
/*
2016-05-16 22:52:27 +02:00
* This file ("ThePotionRings.java") is part of the Actually Additions mod for Minecraft.
2015-08-29 14:33:25 +02:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http://ellpeck.de/actaddlicense
2015-08-29 14:33:25 +02:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 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.block.Blocks;
2015-03-31 20:37:55 +02:00
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.item.Rarity;
import net.minecraft.potion.Effect;
2021-11-21 17:57:50 +01:00
import net.minecraft.potion.Effects;
2015-03-31 20:37:55 +02:00
@Deprecated
2019-05-02 09:10:29 +02:00
public enum ThePotionRings {
2015-03-31 20:37:55 +02:00
2019-05-02 09:10:29 +02:00
SPEED(
2021-11-21 21:02:08 +01:00
8171462,
Effects.MOVEMENT_SPEED,
0,
1,
10,
false,
Rarity.UNCOMMON,
new ItemStack(Items.SUGAR)
),
//Slowness
2019-05-02 09:10:29 +02:00
HASTE(
2021-11-21 21:02:08 +01:00
14270531,
Effects.DIG_SPEED, // todo: wrong
0,
1,
10,
false,
Rarity.EPIC,
new ItemStack(Items.REPEATER)
),
//Mining Fatigue
2019-05-02 09:10:29 +02:00
STRENGTH(
2021-11-21 21:02:08 +01:00
9643043,
Effects.DAMAGE_BOOST, // TODO: wrong?
0,
1,
10,
false,
Rarity.RARE,
new ItemStack(Items.BLAZE_POWDER)
),
2015-03-31 20:37:55 +02:00
//Health (Not Happening)
//Damage
2019-05-02 09:10:29 +02:00
JUMP_BOOST(
2021-11-21 21:02:08 +01:00
7889559,
Effects.JUMP,
0,
1,
10,
false,
Rarity.RARE,
new ItemStack(Blocks.PISTON)
),
//Nausea
2019-05-02 09:10:29 +02:00
REGEN(
2021-11-21 21:02:08 +01:00
13458603,
Effects.REGENERATION,
0,
1,
50,
true,
Rarity.RARE,
new ItemStack(Items.GHAST_TEAR)
),
2019-05-02 09:10:29 +02:00
RESISTANCE(
2021-11-21 21:02:08 +01:00
10044730,
Effects.DAMAGE_RESISTANCE,
0,
1,
10,
false,
Rarity.EPIC,
new ItemStack(Items.SLIME_BALL)
),
2019-05-02 09:10:29 +02:00
FIRE_RESISTANCE(
2021-11-21 21:02:08 +01:00
14981690,
Effects.FIRE_RESISTANCE,
0,
0,
10,
false,
Rarity.UNCOMMON,
new ItemStack(Items.MAGMA_CREAM)
),
2019-05-02 09:10:29 +02:00
WATER_BREATHING(
2021-11-21 21:02:08 +01:00
3035801,
Effects.WATER_BREATHING,
0,
0,
10,
false,
Rarity.RARE,
new ItemStack(Items.TROPICAL_FISH)
),
2019-05-02 09:10:29 +02:00
INVISIBILITY(
2021-11-21 21:02:08 +01:00
8356754,
Effects.INVISIBILITY,
0,
0,
10,
false,
Rarity.EPIC,
new ItemStack(Items.FERMENTED_SPIDER_EYE)
),
//Blindness
2019-05-02 09:10:29 +02:00
NIGHT_VISION(
2021-11-21 21:02:08 +01:00
2039713,
Effects.NIGHT_VISION,
0,
0,
300,
false,
Rarity.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 Rarity rarity;
public final Effect effect;
2015-03-31 20:37:55 +02:00
public final int normalAmplifier;
public final int advancedAmplifier;
public final int activeTime;
public final boolean needsWaitBeforeActivating;
public final ItemStack craftingItem;
2021-11-21 21:02:08 +01:00
ThePotionRings(int color, Effect effect, int normalAmplifier, int advancedAmplifier, int activeTime, boolean needsWaitBeforeActivating, Rarity rarity, ItemStack craftingItem) {
this.name = effect.getDisplayName().getString();
2015-03-31 20:37:55 +02:00
this.color = color;
this.rarity = rarity;
this.effect = effect;
2015-03-31 20:37:55 +02:00
this.normalAmplifier = normalAmplifier;
this.advancedAmplifier = advancedAmplifier;
this.activeTime = activeTime;
this.needsWaitBeforeActivating = needsWaitBeforeActivating;
this.craftingItem = craftingItem;
}
}