mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
Initial 1.16.2 Update
This commit is contained in:
1 parent
a3c4ffd2c1
commit
fe43088c96
233 files changed
+1644
-2297
No files matched your search
@@ -51,40 +51,31 @@ import net.minecraftforge.eventbus.api.Cancelable;
|
||||
@Cancelable
|
||||
public class LivingKnockBackEvent extends LivingEvent
|
||||
{
|
||||
protected Entity attacker;
|
||||
protected float strength;
|
||||
protected double ratioX, ratioZ;
|
||||
protected final Entity originalAttacker;
|
||||
protected final float originalStrength;
|
||||
protected final double originalRatioX, originalRatioZ;
|
||||
|
||||
public LivingKnockBackEvent(LivingEntity target, Entity attacker, float strength, double ratioX, double ratioZ)
|
||||
public LivingKnockBackEvent(LivingEntity target, float strength, double ratioX, double ratioZ)
|
||||
{
|
||||
super(target);
|
||||
this.attacker = this.originalAttacker = attacker;
|
||||
this.strength = this.originalStrength = strength;
|
||||
this.ratioX = this.originalRatioX = ratioX;
|
||||
this.ratioZ = this.originalRatioZ = ratioZ;
|
||||
}
|
||||
|
||||
public Entity getAttacker() {return this.attacker;}
|
||||
|
||||
public float getStrength() {return this.strength;}
|
||||
|
||||
public double getRatioX() {return this.ratioX;}
|
||||
|
||||
public double getRatioZ() {return this.ratioZ;}
|
||||
|
||||
public Entity getOriginalAttacker() {return this.originalAttacker;}
|
||||
|
||||
public float getOriginalStrength() {return this.originalStrength;}
|
||||
|
||||
public double getOriginalRatioX() {return this.originalRatioX;}
|
||||
|
||||
public double getOriginalRatioZ() {return this.originalRatioZ;}
|
||||
|
||||
public void setAttacker(Entity attacker) {this.attacker = attacker;}
|
||||
|
||||
public void setStrength(float strength) {this.strength = strength;}
|
||||
|
||||
public void setRatioX(double ratioX) {this.ratioX = ratioX;}
|
||||
|
||||
Reference in new issue
Block a user