Class ConvertPrefabsCommand
java.lang.Object
com.hypixel.hytale.server.core.command.system.AbstractCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
com.hypixel.hytale.server.core.command.commands.utility.ConvertPrefabsCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final FlagArgprivate static final longprivate final FlagArgprivate final FlagArgprivate static final Stringprivate final FlagArgprivate static final Messageprivate static final Messageprivate final OptionalArg<String> private final FlagArgprivate final DefaultArg<String> private static final StringFields inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
EMPTY_STRING_ARRAY, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CompletableFuture<Void> convertPath(Path assetPath, boolean blocks, boolean filler, boolean relative, boolean entities, boolean destructive, List<String> failed, List<String> skipped) protected CompletableFuture<Void> executeAsync(CommandContext context) private CompletableFuture<Void> processPrefab(Path path, boolean blocks, boolean filler, boolean relative, boolean entities, boolean destructive, CompletableFuture<World> conversionWorldFuture, List<String> failed, List<String> skipped) private CompletableFuture<Void> processPrefabsInBatches(List<Path> prefabPaths, boolean blocks, boolean filler, boolean relative, boolean entities, boolean destructive, CompletableFuture<World> conversionWorldFuture, List<String> failed, List<String> skipped) private voidsendCompletionMessages(CommandContext context, Path assetPath, List<String> failed, List<String> skipped) Methods inherited from class com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
execute, runAsyncMethods inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
acceptCall, addAliases, addSubCommand, addUsageVariant, canGeneratePermission, completeRegistration, countParents, generatePermissionNode, getAliases, getDescription, getFullyQualifiedName, getName, getOwner, getPermission, getPermissionGroups, getPermissionGroupsRecursive, getRequiredArguments, getSubCommands, getUsageShort, getUsageString, hasBeenRegistered, hasPermission, isVariant, matches, putRecursivePermissionGroups, requirePermission, setAllowsExtraArguments, setOwner, setPermissionGroup, setPermissionGroups, setUnavailableInSingleplayer, withDefaultArg, withDefaultArg, withFlagArg, withListDefaultArg, withListOptionalArg, withListRequiredArg, withOptionalArg, withOptionalArg, withRequiredArg, withRequiredArg
-
Field Details
-
UNABLE_TO_LOAD_MODEL
- See Also:
-
FAILED_TO_FIND_BLOCK
- See Also:
-
BATCH_SIZE
private static final int BATCH_SIZE- See Also:
-
DELAY_BETWEEN_BATCHES_MS
private static final long DELAY_BETWEEN_BATCHES_MS- See Also:
-
MESSAGE_COMMANDS_CONVERT_PREFABS_FAILED
-
MESSAGE_COMMANDS_CONVERT_PREFABS_DEFAULT_WORLD_NULL
-
blocksFlag
-
fillerFlag
-
relativeFlag
-
entitiesFlag
-
destructiveFlag
-
pathArg
-
storeArg
-
-
Constructor Details
-
ConvertPrefabsCommand
public ConvertPrefabsCommand()
-
-
Method Details
-
executeAsync
- Specified by:
executeAsyncin classAbstractAsyncCommand
-
sendCompletionMessages
-
convertPath
-
processPrefabsInBatches
@Nonnull private CompletableFuture<Void> processPrefabsInBatches(@Nonnull List<Path> prefabPaths, boolean blocks, boolean filler, boolean relative, boolean entities, boolean destructive, @Nullable CompletableFuture<World> conversionWorldFuture, @Nonnull List<String> failed, @Nonnull List<String> skipped) -
processPrefab
@Nonnull private CompletableFuture<Void> processPrefab(@Nonnull Path path, boolean blocks, boolean filler, boolean relative, boolean entities, boolean destructive, @Nullable CompletableFuture<World> conversionWorldFuture, @Nonnull List<String> failed, @Nonnull List<String> skipped)
-