Class PrefabEditSaveCommand
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.system.basecommands.AbstractAsyncPlayerCommand
com.hypixel.hytale.builtin.buildertools.prefabeditor.commands.PrefabEditSaveCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FlagArgprivate final FlagArgprivate static final Messageprivate static final Messageprivate final FlagArgprivate final FlagArgFields inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
EMPTY_STRING_ARRAY, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<Void> executeAsync(CommandContext context, Store<EntityStore> store, Ref<EntityStore> ref, PlayerRef playerRef, World world) private static PathgetWritableSavePath(PrefabEditingMetadata metadata, boolean confirm) private static booleanMethods inherited from class com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncPlayerCommand
executeAsyncMethods 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
-
MESSAGE_COMMANDS_EDIT_PREFAB_NOT_IN_EDIT_SESSION
-
MESSAGE_PATH_OUTSIDE_PREFABS_DIR
-
saveAllArg
-
noEntitiesArg
-
emptyArg
-
confirmArg
-
-
Constructor Details
-
PrefabEditSaveCommand
public PrefabEditSaveCommand()
-
-
Method Details
-
isPathInAllowedPrefabDirectory
-
executeAsync
@Nonnull protected CompletableFuture<Void> executeAsync(@Nonnull CommandContext context, @Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull PlayerRef playerRef, @Nonnull World world) - Specified by:
executeAsyncin classAbstractAsyncPlayerCommand
-
getWritableSavePath
@Nonnull private static Path getWritableSavePath(@Nonnull PrefabEditingMetadata metadata, boolean confirm)
-