Search in sources :

Example 1 with ServerboundModifyExchangePacket

use of com.almuradev.almura.feature.exchange.network.ServerboundModifyExchangePacket in project Almura by AlmuraDev.

the class ClientExchangeManager method deleteExchange.

public void deleteExchange(final String id) {
    checkNotNull(id);
    this.network.sendToServer(new ServerboundModifyExchangePacket(id));
}
Also used : ServerboundModifyExchangePacket(com.almuradev.almura.feature.exchange.network.ServerboundModifyExchangePacket)

Example 2 with ServerboundModifyExchangePacket

use of com.almuradev.almura.feature.exchange.network.ServerboundModifyExchangePacket in project Almura by AlmuraDev.

the class ClientExchangeManager method modifyExchange.

public void modifyExchange(final String id, final String name, final String permission, final boolean isHidden) {
    checkNotNull(id);
    checkNotNull(name);
    checkNotNull(permission);
    this.network.sendToServer(new ServerboundModifyExchangePacket(ExchangeModifyType.MODIFY, id, name, permission, isHidden));
}
Also used : ServerboundModifyExchangePacket(com.almuradev.almura.feature.exchange.network.ServerboundModifyExchangePacket)

Example 3 with ServerboundModifyExchangePacket

use of com.almuradev.almura.feature.exchange.network.ServerboundModifyExchangePacket in project Almura by AlmuraDev.

the class ClientExchangeManager method addExchange.

public void addExchange(final String id, final String name, final String permission, final boolean isHidden) {
    checkNotNull(id);
    checkNotNull(name);
    checkNotNull(permission);
    this.network.sendToServer(new ServerboundModifyExchangePacket(ExchangeModifyType.ADD, id, name, permission, isHidden));
}
Also used : ServerboundModifyExchangePacket(com.almuradev.almura.feature.exchange.network.ServerboundModifyExchangePacket)

Aggregations

ServerboundModifyExchangePacket (com.almuradev.almura.feature.exchange.network.ServerboundModifyExchangePacket)3