Search in sources :

Example 1 with TriggerSettingMessage

use of com.minecolonies.coremod.network.messages.server.colony.building.TriggerSettingMessage in project minecolonies by Minecolonies.

the class SettingsModuleView method trigger.

@Override
public void trigger(final ISettingKey<?> key) {
    final ISetting setting = settings.get(key);
    setting.trigger();
    Network.getNetwork().sendToServer(new TriggerSettingMessage(buildingView, key, setting));
}
Also used : TriggerSettingMessage(com.minecolonies.coremod.network.messages.server.colony.building.TriggerSettingMessage) ISetting(com.minecolonies.api.colony.buildings.modules.settings.ISetting)

Example 2 with TriggerSettingMessage

use of com.minecolonies.coremod.network.messages.server.colony.building.TriggerSettingMessage in project minecolonies by ldtteam.

the class SettingsModuleView method trigger.

@Override
public void trigger(final ISettingKey<?> key) {
    final ISetting setting = settings.get(key);
    setting.trigger();
    Network.getNetwork().sendToServer(new TriggerSettingMessage(buildingView, key, setting));
}
Also used : TriggerSettingMessage(com.minecolonies.coremod.network.messages.server.colony.building.TriggerSettingMessage) ISetting(com.minecolonies.api.colony.buildings.modules.settings.ISetting)

Aggregations

ISetting (com.minecolonies.api.colony.buildings.modules.settings.ISetting)2 TriggerSettingMessage (com.minecolonies.coremod.network.messages.server.colony.building.TriggerSettingMessage)2