Enchantment and potions
This commit is contained in:
parent
64f4285fbb
commit
b79339e5bc
13 changed files with 169 additions and 6 deletions
15
src/main/java/ru/betterend/effects/EndStatusEffects.java
Normal file
15
src/main/java/ru/betterend/effects/EndStatusEffects.java
Normal file
|
@ -0,0 +1,15 @@
|
|||
package ru.betterend.effects;
|
||||
|
||||
import net.minecraft.entity.effect.StatusEffect;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.effects.status.EndVeilEffect;
|
||||
|
||||
public class EndStatusEffects {
|
||||
|
||||
public final static StatusEffect END_VEIL = registerEffect("end_veil", new EndVeilEffect());
|
||||
|
||||
public static <E extends StatusEffect> StatusEffect registerEffect(String name, E effect) {
|
||||
return Registry.register(Registry.STATUS_EFFECT, BetterEnd.makeID(name), effect);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue