use of com.minecolonies.coremod.network.messages.server.colony.citizen.RestartCitizenMessage in project minecolonies by Minecolonies.
the class WindowHireWorker method restartClicked.
/**
* Restart citizen clicked to restart its AI.
*
* @param button the clicked button.
*/
private void restartClicked(@NotNull final Button button) {
final int row = citizenList.getListElementIndexByPane(button);
final int id = citizens.toArray(new CitizenDataView[0])[row].getId();
Network.getNetwork().sendToServer(new RestartCitizenMessage(this.building, id));
this.close();
}
use of com.minecolonies.coremod.network.messages.server.colony.citizen.RestartCitizenMessage in project minecolonies by ldtteam.
the class WindowHireWorker method restartClicked.
/**
* Restart citizen clicked to restart its AI.
*
* @param button the clicked button.
*/
private void restartClicked(@NotNull final Button button) {
final int row = citizenList.getListElementIndexByPane(button);
final int id = citizens.toArray(new CitizenDataView[0])[row].getId();
Network.getNetwork().sendToServer(new RestartCitizenMessage(this.building, id));
this.close();
}
Aggregations