NaturesAura/src/main/java/de/ellpeck/naturesaura/potion/PotionImpl.java

24 lines
615 B
Java
Raw Normal View History

2018-11-29 17:58:47 +01:00
package de.ellpeck.naturesaura.potion;
import de.ellpeck.naturesaura.reg.IModItem;
import de.ellpeck.naturesaura.reg.ModRegistry;
2021-12-04 19:17:21 +01:00
import net.minecraft.world.effect.MobEffect;
import net.minecraft.world.effect.MobEffectCategory;
2018-11-29 17:58:47 +01:00
2021-12-04 19:17:21 +01:00
public class PotionImpl extends MobEffect implements IModItem {
2018-11-29 17:58:47 +01:00
protected final String baseName;
2021-12-04 19:17:21 +01:00
protected PotionImpl(String baseName, MobEffectCategory type, int liquidColorIn) {
2020-01-21 23:02:39 +01:00
super(type, liquidColorIn);
2018-11-29 17:58:47 +01:00
this.baseName = baseName;
ModRegistry.add(this);
}
@Override
public String getBaseName() {
return this.baseName;
}
}