use of net.minecraft.network.protocol.game.ClientboundEntityEventPacket in project UltraCosmetics by iSach.
the class CustomEntityFirework method tick.
@Override
public void tick() {
if (gone) {
return;
}
if (!this.level.isClientSide) {
gone = true;
if (players != null)
if (players.length > 0)
for (Player player : players) (((CraftPlayer) player).getHandle()).connection.send(new ClientboundEntityEventPacket(this, (byte) 17));
else
level.broadcastEntityEvent(this, (byte) 17);
((Entity) this).discard();
}
}
use of net.minecraft.network.protocol.game.ClientboundEntityEventPacket in project UltraCosmetics by iSach.
the class CustomEntityFirework method tick.
@Override
public void tick() {
if (gone) {
return;
}
if (!this.level.isClientSide) {
gone = true;
if (players != null)
if (players.length > 0)
for (Player player : players) (((CraftPlayer) player).getHandle()).connection.send(new ClientboundEntityEventPacket(this, (byte) 17));
else
level.broadcastEntityEvent(this, (byte) 17);
((Entity) this).discard();
}
}
Aggregations