All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.MobEffectAbsorption Maven / Gradle / Ivy

package net.minecraft.server;

public class MobEffectAbsorption extends MobEffectList {
	
	protected MobEffectAbsorption(int i, MinecraftKey minecraftkey, boolean flag, int j) {
		super(i, minecraftkey, flag, j);
	}
	
	public void a(EntityLiving entityliving, AttributeMapBase attributemapbase, int i) {
		entityliving.setAbsorptionHearts(entityliving.getAbsorptionHearts() - (float) (4 * (i + 1)));
		super.a(entityliving, attributemapbase, i);
	}
	
	public void b(EntityLiving entityliving, AttributeMapBase attributemapbase, int i) {
		entityliving.setAbsorptionHearts(entityliving.getAbsorptionHearts() + (float) (4 * (i + 1)));
		super.b(entityliving, attributemapbase, i);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy