Examples of DestroyEntitiesMessage


Examples of net.glowstone.net.message.play.entity.DestroyEntitiesMessage

        int size = ByteBufUtils.readVarInt(buf);
        List<Integer> ids = new ArrayList<>();
        for (int i = 0; i < size; i++) {
            ids.add(ByteBufUtils.readVarInt(buf));
        }
        return new DestroyEntitiesMessage(ids);
    }
View Full Code Here

Examples of net.glowstone.net.message.play.entity.DestroyEntitiesMessage

                destroyIds.add(entity.getEntityId());
                it.remove();
            }
        }
        if (destroyIds.size() > 0) {
            session.send(new DestroyEntitiesMessage(destroyIds));
        }

        // add entities
        for (GlowEntity entity : world.getEntityManager()) {
            if (entity != this && isWithinDistance(entity) &&
View Full Code Here

Examples of net.glowstone.net.message.play.entity.DestroyEntitiesMessage

        if (equals(player) || !player.isOnline() || !session.isActive()) return;
        if (hiddenEntities.contains(player.getUniqueId())) return;

        hiddenEntities.add(player.getUniqueId());
        if (knownEntities.remove(player)) {
            session.send(new DestroyEntitiesMessage(Arrays.asList(player.getEntityId())));
        }
        session.send(UserListItemMessage.removeOne(player.getUniqueId()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.