ObjectivePanelCommand class

Пакет: com.hypixel.hytale.builtin.adventure.objectives.commands

Файл: com/hypixel/hytale/builtin/adventure/objectives/commands/ObjectivePanelCommand.java

extends: AbstractPlayerCommand

Поля (1)

МодификаторыТипИмя
Player var6

Методы (1)

МодификаторыВозвратСигнатура
abstract super super("panel", "server.commands.objective.panel")

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.builtin.adventure.objectives.commands;

class="kw">import com.hypixel.hytale.builtin.adventure.objectives.admin.ObjectiveAdminPanelPage;
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.AbstractPlayerCommand;
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 javax.annotation.Nonnull;

class="kw">public class ObjectivePanelCommand class="kw">extends AbstractPlayerCommand {
   class="kw">public ObjectivePanelCommand() {
      super("panel", "server.commands.objective.panel");
   }

   @Override
   class="kw">protected void execute(
      @Nonnull CommandContext var1, @Nonnull Store<EntityStore> var2, @Nonnull Ref<EntityStore> var3, @Nonnull PlayerRef var4, @Nonnull World var5
   ) {
      Player var6 = var2.getComponent(var3, Player.getComponentType());
      assert var6 != null;
      var6.getPageManager().openCustomPage(var3, var2, new ObjectiveAdminPanelPage(var4));
   }
}