fix particles
This commit is contained in:
parent
2e7a3dd09a
commit
ebf31c2078
31 changed files with 658 additions and 1156 deletions
|
@ -2175,7 +2175,7 @@ public abstract class EntityNPC extends EntityLiving
|
|||
if(this.connection != null)
|
||||
this.connection.onCriticalHit(entityHit);
|
||||
else if(this.client != null)
|
||||
this.client.emitParticleAtEntity(entityHit, ParticleType.CRIT);
|
||||
this.client.spawnCritParticles(entityHit);
|
||||
}
|
||||
|
||||
public void onEnchantmentCritical(Entity entityHit)
|
||||
|
@ -2183,8 +2183,8 @@ public abstract class EntityNPC extends EntityLiving
|
|||
if(this.connection != null)
|
||||
this.connection.onEnchantmentCritical(entityHit);
|
||||
else if(this.client != null) {
|
||||
this.client.emitParticleAtEntity(entityHit, ParticleType.CRIT);
|
||||
this.client.emitParticleAtEntity(entityHit, ParticleType.CRIT);
|
||||
this.client.spawnCritParticles(entityHit);
|
||||
this.client.spawnCritParticles(entityHit);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package common.network;
|
||||
|
||||
import common.entity.Entity;
|
||||
import common.model.ParticleType;
|
||||
import common.packet.SPacketEntity;
|
||||
import common.packet.SPacketEntityTeleport;
|
||||
import common.packet.SPacketEntityHeadLook;
|
||||
|
@ -70,7 +69,7 @@ public interface IClientPlayer extends NetHandler {
|
|||
void playSound(Sound sound);
|
||||
boolean isRenderViewEntity(Entity entity);
|
||||
void updatePlayerMoveState();
|
||||
void emitParticleAtEntity(Entity entity, ParticleType particleTypes);
|
||||
void spawnCritParticles(Entity entity);
|
||||
boolean isJumping();
|
||||
boolean isSprinting();
|
||||
boolean isSneaking();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue