public class CreativeHubPlugin extends JavaPlugin
The main plugin class for Creativehub. This plugin provides gameplay features for the Hytale server. Extend this class to create a plugin.
java.lang.Object > JavaPlugin > CreativeHubPlugin
Field Summary
parentUuid
Field parentUuid.
hubInstance
Field hubInstance.
universe
Field universe.
existingWorld
Field existingWorld.
assetPath
Field assetPath.
worldPath
Field worldPath.
start
Field start.
rel
Field rel.
toPath
Field toPath.
world
Field world.
worldUuid
Field worldUuid.
holder
Field holder.
existingHubConfig
Field existingHubConfig.
parentWorld
Field parentWorld.
parentHubConfig
Field parentHubConfig.
worldConfig
Field worldConfig.
hubConfig
Field hubConfig.
playerRef
Field playerRef.
spawnProvider
Field spawnProvider.
returnPoint
Field returnPoint.
instanceConfig
Field instanceConfig.
hubEntityConfig
Field hubEntityConfig.
Method Detail
getOrSpawnHubInstance
World
getOrSpawnHubInstance
(@Nonnull final World parentWorld, @Nonnull final CreativeHubWorldConfig hubConfig, @Nonnull final Transform returnPoint)
Method getOrSpawnHubInstance.
- Parameters:
@Nonnull final WorldparentWorld@Nonnull final CreativeHubWorldConfighubConfig@Nonnull final TransformreturnPoint
getActiveHubInstance
World
getActiveHubInstance
(@Nonnull final World parentWorld)
Method getActiveHubInstance.
- Parameters:
@Nonnull final WorldparentWorld
clearHubInstance
void
clearHubInstance
(@Nonnull final UUID parentWorldUuid)
Method clearHubInstance.
- Parameters:
@Nonnull final UUIDparentWorldUuid
spawnPermanentWorldFromTemplate
CompletableFuture
spawnPermanentWorldFromTemplate
(@Nonnull final String instanceAssetName, @Nonnull final String permanentWorldName)
Method spawnPermanentWorldFromTemplate.
- Parameters:
@Nonnull final StringinstanceAssetName@Nonnull final StringpermanentWorldName
getCreativeHubEntityConfigComponentType
CreativeHubEntityConfig>
getCreativeHubEntityConfigComponentType
()
Method getCreativeHubEntityConfigComponentType.
setup
void
setup
()
Method setup.
HubCommand
new
HubCommand
()
Method HubCommand.
WorldReturnPoint
new
WorldReturnPoint
(targetWorld.getWorldConfig()
Method WorldReturnPoint.
- Parameters:
targetWorld.getWorldConfig(targetWorld.getWorldConfig(
onPlayerAddToWorld
Method onPlayerAddToWorld.
- Parameters:
@Nonnull final AddPlayerToWorldEventevent