Re-implemented all plugins

Updated to new Pulsar system, and to reflect various API changes (by TCon and others). Also reformatted build.gradle and bumped Gradle wrapper, Mantle, CCL, CCC, and Waila.
This commit is contained in:
Parker committed 2014-08-05 22:09:57 -04:00
1 parent a4ea930882
commit bff893221e
42 files changed
+939 -619

No files matched your search

@@ -0,0 +1,27 @@
package tconstruct.plugins.mfr;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import powercrystals.minefactoryreloaded.api.ILiquidDrinkHandler;
public class Drinkables implements ILiquidDrinkHandler
{
@Override
public void onDrink (EntityLivingBase entity)
{
//boost health when drink
if (entity != null)
{
PotionEffect potion = entity.getActivePotionEffect(Potion.field_76434_w);
int duration = 0;
if (potion != null)
duration = potion.getDuration();
entity.addPotionEffect(new PotionEffect(Potion.field_76434_w.id, duration + 20 * 30, 0));
}
}
}