T
- private abstract static class CommandTrack.TrackResultsBaseCommand<T> extends CommandBase
CommandBase.CoordinateArg
Modifier and Type | Field and Description |
---|---|
private TimeTracker<T> |
tracker |
Modifier | Constructor and Description |
---|---|
protected |
TrackResultsBaseCommand(TimeTracker<T> tracker) |
Modifier and Type | Method and Description |
---|---|
protected abstract ITextComponent |
buildTrackString(ICommandSender sender,
ForgeTimings<T> data) |
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
protected java.util.List<ForgeTimings<T>> |
getSortedTimings()
Returns the time objects recorded by the time tracker sorted by average time
|
protected java.lang.String |
getTimeSuffix(double time)
Gets the time suffix for the provided time in nanoseconds
|
protected java.lang.String |
getWorldName(int dimId)
Translates a world dimension ID into a name
|
buildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getRequiredPermissionLevel, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, getTabCompletions, isUsernameIndex, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxException
private TimeTracker<T> tracker
protected TrackResultsBaseCommand(TimeTracker<T> tracker)
protected java.util.List<ForgeTimings<T>> getSortedTimings()
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException
protected abstract ITextComponent buildTrackString(ICommandSender sender, ForgeTimings<T> data)
protected java.lang.String getTimeSuffix(double time)
time
- The time in nanosecondsprotected java.lang.String getWorldName(int dimId)
dimId
- The dimension ID