Contents
Class PortalWorldUtils
java.lang.Object
com.hypixel.hytale.builtin.portals.utils.PortalWorldUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic PortalWorldconfigurePortalWorld(World world, PortalKey portalKey, PortalType portalType, PortalGameplayConfig gameplayConfig) Configuresworldas a portal world for the given key.static intgetExtraTimeLimitSeconds(PortalType portalType) The extra seconds the current upgrade level gives portals of this type, or 0 if the portal type has no upgrades.static voidinheritOriginWorldConfigSettings(WorldConfig portalConfig, PortalType portalType) Re-applies the world config settings defined by the player (e.g. fall damage, PvP).static voidleavePortal(Ref<EntityStore> ref, ComponentAccessor<EntityStore> store)
-
Method Details
-
configurePortalWorld
@Nonnull public static PortalWorld configurePortalWorld(@Nonnull World world, @Nonnull PortalKey portalKey, @Nonnull PortalType portalType, @Nonnull PortalGameplayConfig gameplayConfig) Configuresworldas a portal world for the given key. Call it on the world thread:PortalWorld.init(World, PortalType, int, PortalRemovalCondition, PortalGameplayConfig, int)resyncs the void-event schedule, which reads the world clock. -
inheritOriginWorldConfigSettings
public static void inheritOriginWorldConfigSettings(@Nonnull WorldConfig portalConfig, @Nonnull PortalType portalType) Re-applies the world config settings defined by the player (e.g. fall damage, PvP). -
getExtraTimeLimitSeconds
The extra seconds the current upgrade level gives portals of this type, or 0 if the portal type has no upgrades. Reads the upgrade level from the universe-wide game flags. -
leavePortal
public static void leavePortal(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> store)
-