public class ConvertPrefabsCommand extends AbstractAsyncCommand
Command for convertprefab operations. Registered with the command system and callable by players.
java.lang.Object > AbstractAsyncCommand > ConvertPrefabsCommand
Field Summary
blocks
final
boolean
blocks
Field blocks.
filler
final
boolean
filler
Field filler.
relative
final
boolean
relative
Field relative.
entities
final
boolean
entities
Field entities.
destructive
final
boolean
destructive
Field destructive.
defaultWorld
final
World
defaultWorld
Field defaultWorld.
failed
final
List
failed
Field failed.
skipped
final
List
skipped
Field skipped.
storeOption
final
String
storeOption
Field storeOption.
assetPath
final
Path
assetPath
Field assetPath.
s
final
String
s
Field s.
header
final
Message
header
Field header.
universe
final
Universe
universe
Field universe.
config
final
WorldConfig
config
Field config.
prefabPaths
final
List
prefabPaths
Field prefabPaths.
completedFuture
final
CompletableFuture
completedFuture
Field completedFuture.
thenApply
final
CompletableFuture
thenApply
Field thenApply.
batchEnd
final
int
batchEnd
Field batchEnd.
batch
final
List
batch
Field batch.
batchIndex
final
int
batchIndex
Field batchIndex.
batchFutures
final
CompletableFuture>[]
batchFutures
Field batchFutures.
newDocument
final
BsonDocument
newDocument
Field newDocument.
message
final
String
message
Field message.
Method Detail
ConvertPrefabsCommand
public
public
ConvertPrefabsCommand
()
Method ConvertPrefabsCommand.
switch
public
return
switch
(s)
Method switch.
- Parameters:
ss
sendCompletionMessages
private
void
sendCompletionMessages
(@Nonnull final CommandContext context, @Nonnull final Path assetPath, @Nonnull final List failed, @Nonnull final List skipped)
Method sendCompletionMessages.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final PathassetPath@Nonnull final Listfailed@Nonnull final Listskipped
convertPath
private
CompletableFuture
convertPath
(@Nonnull final Path assetPath, final boolean blocks, final boolean filler, final boolean relative, final boolean entities, final boolean destructive, @Nonnull final List failed, @Nonnull final List skipped)
Method convertPath.
- Parameters:
@Nonnull final PathassetPathfinal booleanblocksfinal booleanfillerfinal booleanrelativefinal booleanentitiesfinal booleandestructive@Nonnull final Listfailed@Nonnull final Listskipped
DummyWorldGenProvider
public
new
DummyWorldGenProvider
()
Method DummyWorldGenProvider.
processPrefabsInBatches
private
CompletableFuture
processPrefabsInBatches
(@Nonnull final List prefabPaths, final boolean blocks, final boolean filler, final boolean relative, final boolean entities, final boolean destructive, @Nullable final CompletableFuture conversionWorldFuture, @Nonnull final List failed, @Nonnull final List skipped)
Method processPrefabsInBatches.
- Parameters:
@Nonnull final ListprefabPathsfinal booleanblocksfinal booleanfillerfinal booleanrelativefinal booleanentitiesfinal booleandestructive@Nullable final CompletableFutureconversionWorldFuture@Nonnull final Listfailed@Nonnull final Listskipped
processPrefab
private
CompletableFuture
processPrefab
(@Nonnull final Path path, final boolean blocks, final boolean filler, final boolean relative, final boolean entities, final boolean destructive, @Nullable final CompletableFuture conversionWorldFuture, @Nonnull final List failed, @Nonnull final List skipped)
Method processPrefab.
- Parameters:
@Nonnull final Pathpathfinal booleanblocksfinal booleanfillerfinal booleanrelativefinal booleanentitiesfinal booleandestructive@Nullable final CompletableFutureconversionWorldFuture@Nonnull final Listfailed@Nonnull final Listskipped
if
public
else
if
(message.contains("Unable to load entity with model ")
Method if.
- Parameters:
message.contains("Unable to load entity with model"
Exception
public
new
Exception
("Failed to update " + String.valueOf(path)
Method Exception.
- Parameters:
"Failed to update " +String.valueOf(path