Search in sources :

Example 1 with ServerboundModifyStorePacket

use of com.almuradev.almura.feature.store.network.ServerboundModifyStorePacket in project Almura by AlmuraDev.

the class ClientStoreManager method deleteStore.

public void deleteStore(final String id) {
    checkNotNull(id);
    this.network.sendToServer(new ServerboundModifyStorePacket(id));
}
Also used : ServerboundModifyStorePacket(com.almuradev.almura.feature.store.network.ServerboundModifyStorePacket)

Example 2 with ServerboundModifyStorePacket

use of com.almuradev.almura.feature.store.network.ServerboundModifyStorePacket in project Almura by AlmuraDev.

the class ClientStoreManager method modifyStore.

public void modifyStore(final String id, final String name, final String permission, final boolean isHidden) {
    checkNotNull(id);
    checkNotNull(name);
    checkNotNull(permission);
    this.network.sendToServer(new ServerboundModifyStorePacket(StoreModifyType.MODIFY, id, name, permission, isHidden));
}
Also used : ServerboundModifyStorePacket(com.almuradev.almura.feature.store.network.ServerboundModifyStorePacket)

Example 3 with ServerboundModifyStorePacket

use of com.almuradev.almura.feature.store.network.ServerboundModifyStorePacket in project Almura by AlmuraDev.

the class ClientStoreManager method addStore.

public void addStore(final String id, final String name, final String permission, final boolean isHidden) {
    checkNotNull(id);
    checkNotNull(name);
    checkNotNull(permission);
    this.network.sendToServer(new ServerboundModifyStorePacket(StoreModifyType.ADD, id, name, permission, isHidden));
}
Also used : ServerboundModifyStorePacket(com.almuradev.almura.feature.store.network.ServerboundModifyStorePacket)

Aggregations

ServerboundModifyStorePacket (com.almuradev.almura.feature.store.network.ServerboundModifyStorePacket)3