增强BEAST效果
This commit is contained in:
parent
48e740ff64
commit
1f72f49e30
2 changed files with 9 additions and 1 deletions
|
@ -104,7 +104,13 @@ public class Beast extends SwordItem {
|
|||
living.setHealth(0);
|
||||
}
|
||||
target.level().broadcastEntityEvent(target, (byte) 60);
|
||||
target.remove(Entity.RemovalReason.KILLED);
|
||||
|
||||
target.removalReason = Entity.RemovalReason.KILLED;
|
||||
target.getPassengers().forEach(Entity::stopRiding);
|
||||
target.stopRiding();
|
||||
|
||||
target.levelCallback.onRemove(Entity.RemovalReason.KILLED);
|
||||
|
||||
target.gameEvent(GameEvent.ENTITY_DIE);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
public net.minecraft.client.multiplayer.ClientLevel getEntities()Lnet/minecraft/world/level/entity/LevelEntityGetter; # getEntities
|
||||
public net.minecraft.world.entity.Entity passengers # passengers
|
||||
public net.minecraft.world.entity.Entity boardingCooldown # boardingCooldown
|
||||
public net.minecraft.world.entity.Entity levelCallback # levelCallback
|
||||
public net.minecraft.world.entity.Entity removalReason # removalReason
|
||||
public net.minecraft.client.player.LocalPlayer handsBusy # handsBusy
|
||||
public net.minecraft.client.renderer.culling.Frustum matrix # matrix
|
||||
public net.minecraft.client.renderer.LevelRenderer renderBuffers # renderBuffers
|
||||
|
|
Loading…
Add table
Reference in a new issue