PanelCommand class
Пакет: com.hypixel.hytale.builtin.adventure.worldevents.command
Файл: com/hypixel/hytale/builtin/adventure/worldevents/command/PanelCommand.java
extends: AbstractAsyncPlayerCommand
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
|
Player |
var6 |
Методы (2)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
|
|
if if(var6 != null) |
abstract |
|
super super("panel", "server.commands.worldevent.panel.desc") |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.builtin.adventure.worldevents.command;
class="kw">import com.hypixel.hytale.builtin.adventure.worldevents.ui.WorldEventPanelPage;
class="kw">import com.hypixel.hytale.component.Ref;
class="kw">import com.hypixel.hytale.component.Store;
class="kw">import com.hypixel.hytale.server.core.command.system.CommandContext;
class="kw">import com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncPlayerCommand;
class="kw">import com.hypixel.hytale.server.core.entity.entities.Player;
class="kw">import com.hypixel.hytale.server.core.universe.PlayerRef;
class="kw">import com.hypixel.hytale.server.core.universe.world.World;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import java.util.concurrent.CompletableFuture;
class="kw">import javax.annotation.Nonnull;
class="kw">public class PanelCommand class="kw">extends AbstractAsyncPlayerCommand {
class="kw">public PanelCommand() {
super("panel", "server.commands.worldevent.panel.desc");
}
@Nonnull
@Override
class="kw">protected CompletableFuture<Void> executeAsync(
@Nonnull CommandContext var1, @Nonnull Store<EntityStore> var2, @Nonnull Ref<EntityStore> var3, @Nonnull PlayerRef var4, @Nonnull World var5
) {
Player var6 = var2.getComponent(var3, Player.getComponentType());
if (var6 != null) {
var6.getPageManager().openCustomPage(var3, var2, WorldEventPanelPage.Tab.ACTIVE.create(var4));
}
class="kw">return CompletableFuture.completedFuture(null);
}
}