mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 20:22:05 -07:00
net/minecraft/world/entity/monster/creaking
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
--- a/net/minecraft/world/entity/monster/creaking/Creaking.java
|
||||
+++ b/net/minecraft/world/entity/monster/creaking/Creaking.java
|
||||
@@ -190,9 +_,9 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
- public void push(double x, double y, double z) {
|
||||
+ public void push(double x, double y, double z, @Nullable Entity pushingEntity) { // Paper - add push source entity param
|
||||
if (this.canMove()) {
|
||||
- super.push(x, y, z);
|
||||
+ super.push(x, y, z, pushingEntity); // Paper - add push source entity param
|
||||
}
|
||||
}
|
||||
|
||||
@@ -317,7 +_,7 @@
|
||||
}
|
||||
|
||||
this.makeSound(this.getDeathSound());
|
||||
- this.remove(Entity.RemovalReason.DISCARDED);
|
||||
+ this.remove(Entity.RemovalReason.DISCARDED, null); // CraftBukkit - add Bukkit remove cause
|
||||
}
|
||||
|
||||
public void creakingDeathEffects(DamageSource damageSource) {
|
||||
@@ -480,9 +_,9 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
- public void knockback(double strength, double x, double z) {
|
||||
+ public void knockback(double strength, double x, double z, @Nullable Entity attacker, io.papermc.paper.event.entity.EntityKnockbackEvent.Cause cause) { // Paper - knockback events
|
||||
if (this.canMove()) {
|
||||
- super.knockback(strength, x, z);
|
||||
+ super.knockback(strength, x, z, attacker, cause); // Paper - knockback events
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user