return;
}
if (self) {
// Sync using vanilla Player 'self' protocol
// Note: No messages gathered because all update methods send to the Player
PlayerEntityProtocol pep = (PlayerEntityProtocol) ep;
Player player = (Player) e;
if (destroy) {
pep.doSelfDestroy(player);
}
if (spawn) {
pep.doSelfSpawn(player, getRepositionManager());
}
if (update) {
boolean force = shouldForce(e.getId());
pep.doSelfUpdate(player, liveTransform, getRepositionManager(), force);
}
} else {
// Sync using vanilla protocol
List<Message> messages = new ArrayList<Message>();
if (destroy) {