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

24 lines
583 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;
2019-10-20 22:30:49 +02:00
import net.minecraft.potion.Effect;
2020-01-21 23:02:39 +01:00
import net.minecraft.potion.EffectType;
2018-11-29 17:58:47 +01:00
2019-10-20 22:30:49 +02:00
public class PotionImpl extends Effect implements IModItem {
2018-11-29 17:58:47 +01:00
protected final String baseName;
2020-01-21 23:02:39 +01:00
protected PotionImpl(String baseName, EffectType type, int liquidColorIn) {
super(type, liquidColorIn);
2018-11-29 17:58:47 +01:00
this.baseName = baseName;
ModRegistry.add(this);
}
@Override
public String getBaseName() {
return this.baseName;
}
}