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
|
|
|
|
2024-03-02 21:23:08 +01:00
|
|
|
import net.minecraft.world.effect.MobEffect;
|
|
|
|
import net.minecraft.world.effect.MobEffects;
|
|
|
|
import net.minecraft.world.item.ItemStack;
|
|
|
|
import net.minecraft.world.item.Items;
|
|
|
|
import net.minecraft.world.item.Rarity;
|
|
|
|
import net.minecraft.world.level.block.Blocks;
|
2015-03-31 20:37:55 +02:00
|
|
|
|
2021-03-01 17:25:30 +01: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-27 01:21:01 +01:00
|
|
|
8171462,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.MOVEMENT_SPEED,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
1,
|
|
|
|
10,
|
|
|
|
false,
|
|
|
|
Rarity.UNCOMMON,
|
|
|
|
new ItemStack(Items.SUGAR)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
HASTE(
|
2021-11-27 01:21:01 +01:00
|
|
|
14270531,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.DIG_SPEED,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
1,
|
|
|
|
10,
|
|
|
|
false,
|
|
|
|
Rarity.EPIC,
|
|
|
|
new ItemStack(Items.REPEATER)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
STRENGTH(
|
2021-11-27 01:21:01 +01:00
|
|
|
9643043,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.DAMAGE_BOOST,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
1,
|
|
|
|
10,
|
|
|
|
false,
|
|
|
|
Rarity.RARE,
|
|
|
|
new ItemStack(Items.BLAZE_POWDER)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
JUMP_BOOST(
|
2021-11-27 01:21:01 +01:00
|
|
|
7889559,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.JUMP,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
1,
|
|
|
|
10,
|
|
|
|
false,
|
|
|
|
Rarity.RARE,
|
|
|
|
new ItemStack(Blocks.PISTON)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
REGEN(
|
2021-11-27 01:21:01 +01:00
|
|
|
13458603,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.REGENERATION,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
1,
|
|
|
|
50,
|
|
|
|
true,
|
|
|
|
Rarity.RARE,
|
|
|
|
new ItemStack(Items.GHAST_TEAR)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
RESISTANCE(
|
2021-11-27 01:21:01 +01:00
|
|
|
10044730,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.DAMAGE_RESISTANCE,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
1,
|
|
|
|
10,
|
|
|
|
false,
|
|
|
|
Rarity.EPIC,
|
|
|
|
new ItemStack(Items.SLIME_BALL)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
FIRE_RESISTANCE(
|
2021-11-27 01:21:01 +01:00
|
|
|
14981690,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.FIRE_RESISTANCE,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
0,
|
|
|
|
10,
|
|
|
|
false,
|
|
|
|
Rarity.UNCOMMON,
|
|
|
|
new ItemStack(Items.MAGMA_CREAM)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
WATER_BREATHING(
|
2021-11-27 01:21:01 +01:00
|
|
|
3035801,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.WATER_BREATHING,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
0,
|
|
|
|
10,
|
|
|
|
false,
|
|
|
|
Rarity.RARE,
|
|
|
|
new ItemStack(Items.TROPICAL_FISH)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
INVISIBILITY(
|
2021-11-27 01:21:01 +01:00
|
|
|
8356754,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.INVISIBILITY,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
0,
|
|
|
|
10,
|
|
|
|
false,
|
|
|
|
Rarity.EPIC,
|
|
|
|
new ItemStack(Items.FERMENTED_SPIDER_EYE)
|
2021-03-01 17:25:30 +01:00
|
|
|
),
|
2019-05-02 09:10:29 +02:00
|
|
|
NIGHT_VISION(
|
2021-11-27 01:21:01 +01:00
|
|
|
2039713,
|
2024-03-02 21:23:08 +01:00
|
|
|
MobEffects.NIGHT_VISION,
|
2021-11-27 01:21:01 +01:00
|
|
|
0,
|
|
|
|
0,
|
|
|
|
300,
|
|
|
|
false,
|
|
|
|
Rarity.RARE,
|
|
|
|
new ItemStack(Items.GOLDEN_CARROT)
|
2021-03-01 17:25:30 +01:00
|
|
|
);
|
2015-03-31 20:37:55 +02:00
|
|
|
|
|
|
|
public final String name;
|
|
|
|
public final int color;
|
2021-03-01 17:25:30 +01:00
|
|
|
public final Rarity rarity;
|
2024-03-02 21:23:08 +01:00
|
|
|
public final MobEffect 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;
|
|
|
|
|
2024-03-02 21:23:08 +01:00
|
|
|
ThePotionRings(int color, MobEffect effect, int normalAmplifier, int advancedAmplifier, int activeTime, boolean needsWaitBeforeActivating, Rarity rarity, ItemStack craftingItem) {
|
2021-11-21 21:02:08 +01:00
|
|
|
this.name = effect.getDisplayName().getString();
|
2015-03-31 20:37:55 +02:00
|
|
|
this.color = color;
|
|
|
|
this.rarity = rarity;
|
2021-11-21 18:36:46 +01:00
|
|
|
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;
|
|
|
|
}
|
2021-03-01 17:25:30 +01:00
|
|
|
}
|