Package org.godot.utilities.project
Class Project
- java.lang.Object
-
- org.godot.utilities.core.io.DirectoryResource
-
- org.godot.utilities.project.BaseProject
-
- org.godot.utilities.project.Project
-
- All Implemented Interfaces:
IResolver,IResource,IProjectInfo
public final class Project extends BaseProject implements IProjectInfo
-
-
Field Summary
-
Fields inherited from class org.godot.utilities.project.BaseProject
projectFile, projectVersion
-
Fields inherited from class org.godot.utilities.core.io.DirectoryResource
location
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InigetConfig()Get current project config@Nullable ScenegetMainScene()Get project main scene.@Nullable StringgetProjectDescription()Get project description.@Nullable ProjectResourcegetProjectIcon()Get project icon.@Nullable StringgetProjectName()Get project title name.@Nullable VideoDrivergetProjectVideoDriver()Get current project video driver.SceneInspectorgetSceneInspector()Get current scene inspector@NotNull StringtoString()Object string representation-
Methods inherited from class org.godot.utilities.core.io.DirectoryResource
getResourcePath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.godot.utilities.core.io.IResolver
resolvePath, resolveResource
-
-
-
-
Constructor Detail
-
Project
public Project(@NotNull @NotNull Path l, @NotNull @NotNull Version v) throws IOException
Project constructor.- Parameters:
l- Project locationv- Project version- Throws:
IOException- Error if location not exists or is not valid directory
-
Project
public Project(@NotNull @NotNull Path l) throws IOException
Project without version. Use recommended version.- Parameters:
l- Project location- Throws:
IOException- Error if location not exists or is not valid directory
-
-
Method Detail
-
getConfig
public Ini getConfig()
Get current project config- Returns:
- Return all project configuration
-
getSceneInspector
public SceneInspector getSceneInspector()
Get current scene inspector- Returns:
- Return a scene inspector
-
getProjectName
@Contract(pure=true) @Nullable public @Nullable String getProjectName()
Get project title name.This name is defined in "project.godot" or "engine.cfg", it depends on the version
- Specified by:
getProjectNamein interfaceIProjectInfo- Returns:
- Project title name
-
getProjectDescription
@Contract(pure=true) @Nullable public @Nullable String getProjectDescription()
Get project description.- Specified by:
getProjectDescriptionin interfaceIProjectInfo- Returns:
- Project description or
nullif property is not defined
-
getMainScene
@Nullable public @Nullable Scene getMainScene()
Get project main scene. This is useful when you can run the project.- Specified by:
getMainScenein interfaceIProjectInfo- Returns:
- Returns a special godot location or
nullif property is not defined.
-
getProjectIcon
@Nullable public @Nullable ProjectResource getProjectIcon()
Get project icon.- Specified by:
getProjectIconin interfaceIProjectInfo- Returns:
- Return a special godot location or
nullif property is not defined.
-
getProjectVideoDriver
@Nullable public @Nullable VideoDriver getProjectVideoDriver()
Get current project video driver.This is useful if you want to change before to launch.
- Specified by:
getProjectVideoDriverin interfaceIProjectInfo- Returns:
- Return a project driver or
nullif property is not defined
-
-