use of net.minecraft.network.packet.s2c.play.EntitySpawnS2CPacket in project Paradise-Lost by devs-immortal.
the class AetherNonLivingEntity method createSpawnPacket.
@Override
public final Packet<?> createSpawnPacket() {
PacketByteBuf buf = new PacketByteBuf(Unpooled.buffer());
Identifier id = this.createSpawnPacket(buf);
for (ServerPlayerEntity playerEntity : ((ServerWorld) this.world).getPlayers()) {
ServerSidePacketRegistry.INSTANCE.sendToPlayer(playerEntity, id, buf);
}
return new EntitySpawnS2CPacket(this);
}
Aggregations