Class BeaconEffectRegistry
java.lang.Object
net.frozenblock.lib.block.api.beacon.BeaconEffectRegistry
A helper class for adding new
MobEffects to the Beacon.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect, int tier) Adds aMobEffectto the Beacon.
-
Constructor Details
-
BeaconEffectRegistry
public BeaconEffectRegistry()
-
-
Method Details
-
register
public static void register(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect, int tier) Adds aMobEffectto the Beacon.- Parameters:
effect- TheMobEffectto add.tier- The tier to add theMobEffectto. Tier 4 contains Regeneration and can be used simultaneously with tier 1-3 effects.
-