public class PrefabCommand extends AbstractCommandCollection
Command for prefa operations. Registered with the command system and callable by players.
java.lang.Object > AbstractCommandCollection > PrefabCommand
Field Summary
playerComponent
Field playerComponent.
builderState
Field builderState.
assetPaths
Field assetPaths.
defaultRoot
Field defaultRoot.
storeType
Field storeType.
storeName
Field storeName.
finalName
Field finalName.
s
Field s.
value
Field value.
foundPath
Field foundPath.
value2
Field value2.
storePath
Field storePath.
finalPrefabStorePath
Field finalPrefabStorePath.
prefabExists
Field prefabExists.
module
Field module.
serverPrefabsPath
Field serverPrefabsPath.
resolve
Field resolve.
ref
Field ref.
store
Field store.
playerRefComponent
Field playerRefComponent.
relativize
Field relativize.
prefabStorePath
Field prefabStorePath.
world
Field world.
prefabFiles
Field prefabFiles.
path
Field path.
packPrefix
Field packPrefix.
fileName
Field fileName.
path2
Field path2.
Method Detail
PrefabCommand
public
PrefabCommand
()
Method PrefabCommand.
PrefabSaveCommand
new
PrefabSaveCommand
()
Method PrefabSaveCommand.
PrefabLoadCommand
new
PrefabLoadCommand
()
Method PrefabLoadCommand.
PrefabDeleteCommand
new
PrefabDeleteCommand
()
Method PrefabDeleteCommand.
PrefabListCommand
new
PrefabListCommand
()
Method PrefabListCommand.
execute
void
execute
(@Nonnull final CommandContext context, @Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world)
Method execute.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final Storestore@Nonnull final Refref@Nonnull final PlayerRefplayerRef@Nonnull final Worldworld
PrefabSavePage
new
PrefabSavePage
(playerRef)
Method PrefabSavePage.
- Parameters:
playerRefplayerRef
PrefabLoadByNameCommand
new
PrefabLoadByNameCommand
()
Method PrefabLoadByNameCommand.
PrefabPage
new
PrefabPage
(playerRef, defaultRoot, builderState)
Method PrefabPage.
- Parameters:
playerRefplayerRefdefaultRootdefaultRootbuilderStatebuilderState
visitFile
FileVisitResult
visitFile
(@Nonnull final Path file, @Nonnull final BasicFileAttributes attrs)
Method visitFile.
- Parameters:
@Nonnull final Pathfile@Nonnull final BasicFileAttributesattrs