src/main/java/dev/rlnt/energymeter/meter/MeterTile.java
public void updateSetting(SETTING setting) {
        if (setting == SETTING.NUMBER) {
            numberMode = numberMode == NUMBER_MODE.SHORT ? NUMBER_MODE.LONG : NUMBER_MODE.SHORT;
            syncData(SyncFlags.NUMBER_MODE);
        } else if (setting == SETTING.MODE) {
            mode = mode == MODE.TRANSFER ? MODE.CONSUMER : MODE.TRANSFER;
            syncData(SyncFlags.MODE);
        }
    }
/**
     * Convenience method used by the {@link SettingUpdatePacket} in order
     * to flip a specific setting after a button click on the client.
     *
     * @param setting the setting to update
     */
Convenience method used by the  SettingUpdatePacket in order
to flip a specific setting after a button click on the client.

@param setting the setting to update
Convenience method used by the SettingUpdatePacket in order to flip a specific setting after a button click on the client . @param setting the setting to update
public void updateSetting(SETTING setting) {
        if (setting == SETTING.NUMBER) {
            numberMode = numberMode == NUMBER_MODE.SHORT ? NUMBER_MODE.LONG : NUMBER_MODE.SHORT;
            syncData(SyncFlags.NUMBER_MODE);
        } else if (setting == SETTING.MODE) {
            mode = mode == MODE.TRANSFER ? MODE.CONSUMER : MODE.TRANSFER;
            syncData(SyncFlags.MODE);
        }
    }
public void updateSetting ( SETTING setting ) { if ( setting == SETTING . NUMBER ) { numberMode = numberMode == NUMBER_MODE . SHORT ? NUMBER_MODE . LONG : NUMBER_MODE . SHORT ; syncData ( SyncFlags . NUMBER_MODE ) ; } else if ( setting == SETTING . MODE ) { mode = mode == MODE . TRANSFER ? MODE . CONSUMER : MODE . TRANSFER ; syncData ( SyncFlags . MODE ) ; } }
Convenience method used by the {@link SettingUpdatePacket} in order
 to flip a specific setting after a button click on the client.
Convenience method used by the { @link SettingUpdatePacket } in order to flip a specific setting after a button click on the client .