ChunkTrackerCommand class
Пакет: com.hypixel.hytale.server.core.command.commands.world.chunk
Файл: com/hypixel/hytale/server/core/command/commands/world/chunk/ChunkTrackerCommand.java
extends: AbstractTargetPlayerCommand
Поля (4)
| Модификаторы | Тип | Имя |
|---|---|---|
|
String |
var10 |
|
Player |
var7 |
|
ChunkTracker |
var8 |
|
ChunkStore |
var9 |
Методы (1)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
abstract |
|
super super("tracker", "server.commands.chunk.tracker.desc") |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.command.commands.world.chunk;
class="kw">import com.hypixel.hytale.component.Ref;
class="kw">import com.hypixel.hytale.component.Store;
class="kw">import com.hypixel.hytale.server.core.Message;
class="kw">import com.hypixel.hytale.server.core.command.system.CommandContext;
class="kw">import com.hypixel.hytale.server.core.command.system.basecommands.AbstractTargetPlayerCommand;
class="kw">import com.hypixel.hytale.server.core.entity.entities.Player;
class="kw">import com.hypixel.hytale.server.core.modules.entity.player.ChunkTracker;
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.ChunkStore;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">public class ChunkTrackerCommand class="kw">extends AbstractTargetPlayerCommand {
class="kw">public ChunkTrackerCommand() {
super("tracker", "server.commands.chunk.tracker.desc");
}
@Override
class="kw">protected void execute(
@Nonnull CommandContext var1,
@Nullable Ref<EntityStore> var2,
@Nonnull Ref<EntityStore> var3,
@Nonnull PlayerRef var4,
@Nonnull World var5,
@Nonnull Store<EntityStore> var6
) {
Player var7 = var6.getComponent(var3, Player.getComponentType());
assert var7 != null;
ChunkTracker var8 = var6.getComponent(var3, ChunkTracker.getComponentType());
assert var8 != null;
ChunkStore var9 = var5.getChunkStore();
String var10 = Integer.toString(var9.getLoadedChunksCount());
var1.sendMessage(
Message.translation("server.commands.chunkTracker.summary")
.param("maxSectionsPerSecond", var8.getMaxSectionsPerSecond())
.param("maxSectionsPerTick", var8.getMaxSectionsPerTick())
.param("minChunkLoadedRadius", var8.getMinLoadedRadius())
.param("maxHotChunkLoadedRadius", var8.getMaxHotLoadedRadius())
.param("loadedPlayerSections", var8.getLoadedSectionsCount())
.param("loadingPlayerSections", var8.getLoadingSectionsCount())
.param("loadedWorldChunks", var10)
);
}
}