14151617181920
} @Override public DestroyEntityMessage decode(ChannelBuffer buffer) throws IOException { int id = buffer.readInt(); return new DestroyEntityMessage(id); }
103104105106107108109110111112113
if (withinDistance) { Message msg = entity.createUpdateMessage(); if (msg != null) session.send(msg); } else { session.send(new DestroyEntityMessage(entity.getId())); it.remove(); } } for (Entity entity : world.getEntities()) {