NaturesAura/src/main/java/de/ellpeck/naturesaura/potion/PotionImpl.java
2020-01-23 22:40:03 +01:00

24 lines
583 B
Java

package de.ellpeck.naturesaura.potion;
import de.ellpeck.naturesaura.reg.IModItem;
import de.ellpeck.naturesaura.reg.ModRegistry;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectType;
public class PotionImpl extends Effect implements IModItem {
protected final String baseName;
protected PotionImpl(String baseName, EffectType type, int liquidColorIn) {
super(type, liquidColorIn);
this.baseName = baseName;
ModRegistry.add(this);
}
@Override
public String getBaseName() {
return this.baseName;
}
}