Removed color provider
This commit is contained in:
parent
2c8862a37b
commit
4040597a6d
475 changed files with 5411 additions and 7521 deletions
|
@ -7,11 +7,11 @@ import ru.betterend.effects.enchantment.EndVeilEnchantment;
|
|||
|
||||
public class EndEnchantments {
|
||||
public final static Enchantment END_VEIL = registerEnchantment("end_veil", new EndVeilEnchantment());
|
||||
|
||||
|
||||
public static Enchantment registerEnchantment(String name, Enchantment enchantment) {
|
||||
return Registry.register(Registry.ENCHANTMENT, BetterEnd.makeID(name), enchantment);
|
||||
}
|
||||
|
||||
|
||||
public static void register() {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,15 +14,15 @@ import ru.betterend.registry.EndItems;
|
|||
public class EndPotions {
|
||||
public final static Potion END_VEIL = registerPotion("end_veil", EndStatusEffects.END_VEIL, 3600);
|
||||
public final static Potion LONG_END_VEIL = registerPotion("long_end_veil", EndStatusEffects.END_VEIL, 9600);
|
||||
|
||||
|
||||
public static Potion registerPotion(String name, MobEffect effect, int duration) {
|
||||
return registerPotion(name, new Potion(name, new MobEffectInstance(effect, duration)));
|
||||
}
|
||||
|
||||
|
||||
public static Potion registerPotion(String name, Potion potion) {
|
||||
return Registry.register(Registry.POTION, BetterEnd.makeID(name), potion);
|
||||
}
|
||||
|
||||
|
||||
public static void register() {
|
||||
PotionBrewingAccessor.callAddMix(Potions.AWKWARD, EndItems.ENDER_DUST, END_VEIL);
|
||||
PotionBrewingAccessor.callAddMix(END_VEIL, Items.REDSTONE, LONG_END_VEIL);
|
||||
|
|
|
@ -11,9 +11,9 @@ public class EndStatusEffects {
|
|||
public final static MobEffectInstance CRYSTALITE_HEALTH_REGEN = new MobEffectInstance(MobEffects.REGENERATION, 40, 0, true, false, true);
|
||||
public final static MobEffectInstance CRYSTALITE_DIG_SPEED = new MobEffectInstance(MobEffects.DIG_SPEED, 40, 0, true, false, true);
|
||||
public final static MobEffectInstance CRYSTALITE_MOVE_SPEED = new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 40, 0, true, false, true);
|
||||
|
||||
|
||||
public final static MobEffect END_VEIL = registerEffect("end_veil", new EndVeilEffect());
|
||||
|
||||
|
||||
public static <E extends MobEffect> MobEffect registerEffect(String name, E effect) {
|
||||
return Registry.register(Registry.MOB_EFFECT, BetterEnd.makeID(name), effect);
|
||||
}
|
||||
|
|
|
@ -5,11 +5,11 @@ import net.minecraft.world.item.enchantment.Enchantment;
|
|||
import net.minecraft.world.item.enchantment.EnchantmentCategory;
|
||||
|
||||
public class EndVeilEnchantment extends Enchantment {
|
||||
|
||||
|
||||
public EndVeilEnchantment() {
|
||||
super(Enchantment.Rarity.VERY_RARE, EnchantmentCategory.ARMOR_HEAD, new EquipmentSlot[]{EquipmentSlot.HEAD});
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isDiscoverable() {
|
||||
return false;
|
||||
|
|
|
@ -4,11 +4,11 @@ import net.minecraft.world.effect.MobEffect;
|
|||
import net.minecraft.world.effect.MobEffectCategory;
|
||||
|
||||
public class EndVeilEffect extends MobEffect {
|
||||
|
||||
|
||||
public EndVeilEffect() {
|
||||
super(MobEffectCategory.BENEFICIAL, 0x0D554A);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isDurationEffectTick(int duration, int amplifier) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue