/** * Remove an intention type, sending the command directly to the server without doing anything * else. */ public void removeIntentionType(long typeId) { CalicoPacket packet = new CalicoPacket(); packet.putInt(IntentionalInterfacesNetworkCommands.CIT_DELETE); packet.putLong(typeId); packet.rewind(); PacketHandler.receive(packet); Networking.send(packet); }
/** * Change the color of an intention type, sending the command directly to the server without doing * anything else. */ public void setIntentionTypeColorIndex(long typeId, int colorIndex) { CalicoPacket packet = new CalicoPacket(); packet.putInt(IntentionalInterfacesNetworkCommands.CIT_SET_COLOR); packet.putLong(typeId); packet.putInt(colorIndex); packet.rewind(); PacketHandler.receive(packet); Networking.send(packet); }
/** * Rename an intention type, sending the command directly to the server without doing anything * else. */ public void renameIntentionType(long typeId, String name) { CalicoPacket packet = new CalicoPacket(); packet.putInt(IntentionalInterfacesNetworkCommands.CIT_RENAME); packet.putLong(typeId); packet.putString(name); packet.rewind(); PacketHandler.receive(packet); Networking.send(packet); }