Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- init(World, PortalType, int, PortalRemovalCondition, PortalGameplayConfig, int)
- getPortalType()
- exists()
- getTimeLimitSeconds()
- hasTimeLimit()
- isVoidInvasionEnabled()
- getElapsedSeconds(World)
- getRemainingSeconds(World)
- getAllowedEntryCount()
- isAllowPlayersToLeaveViaMap()
- getEntryCount(UUID)
- hasAnyEntry()
- recordEntry(UUID)
- hasReachedEntryLimit(UUID)
- getSeesUi()
- isTimeLimitActive()
- toggleTimeLimit(World)
- computeLatestStage(World, VoidEventConfig)
- hasVoidEventReached(World, int)
- getActiveVoidEventStage(Store)
- getActiveInvasionPortals(Store)
- getGameplayConfig()
- getVoidEventConfig()
- getSpawnPoint()
- setSpawnPoint(Transform)
- getVoidEventRef()
- isVoidEventActive()
- setVoidEventRef(Ref)
- createFullPacket(World)
- createUpdatePacket(World)
- clone()
- getResourceType()
- setRemainingSeconds(World, double, boolean)
Class PortalWorld
java.lang.Object
com.hypixel.hytale.builtin.portals.resources.PortalWorld
- All Implemented Interfaces:
Resource<EntityStore>, Cloneable
-
Field Summary
FieldsFields inherited from interface Resource
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()computeLatestStage(World world, VoidEventConfig config) Calculate the latest active void event stage for the given world and event configuration.createFullPacket(World world) createUpdatePacket(World world) booleanexists()getActiveInvasionPortals(Store<EntityStore> store) The invasion-portal config in effect for the active void-event stage, or null when no portal world exists, no stage is active, or no stage so far defines invasion portals.getActiveVoidEventStage(Store<EntityStore> store) The active void-event stage, or null when no void event runs or no stage has started yet.intdoublegetElapsedSeconds(World world) intgetEntryCount(UUID playerId) doublegetRemainingSeconds(World world) static ResourceType<EntityStore, PortalWorld> intbooleanbooleanhasReachedEntryLimit(UUID playerId) booleanbooleanhasVoidEventReached(World world, int secondsInto) Whether the void-event has reached the given second of the world's lifetime.voidinit(World world, PortalType portalType, int timeLimitSeconds, PortalRemovalCondition removalCondition, PortalGameplayConfig gameplayConfig, int allowedEntryCount) booleanbooleanbooleanbooleanintrecordEntry(UUID playerId) static voidsetRemainingSeconds(World world, double seconds, boolean resyncSchedule) voidsetSpawnPoint(Transform spawnPoint) voidsetVoidEventRef(Ref<EntityStore> voidEventRef) booleantoggleTimeLimit(World world)
-
Field Details
-
NO_TIME_LIMIT
public static final int NO_TIME_LIMIT- See Also:
-
-
Constructor Details
-
PortalWorld
public PortalWorld()
-
-
Method Details
-
init
public void init(@Nonnull World world, @Nonnull PortalType portalType, int timeLimitSeconds, @Nonnull PortalRemovalCondition removalCondition, @Nonnull PortalGameplayConfig gameplayConfig, int allowedEntryCount) -
getPortalType
-
exists
public boolean exists() -
getTimeLimitSeconds
public int getTimeLimitSeconds() -
hasTimeLimit
public boolean hasTimeLimit() -
isVoidInvasionEnabled
public boolean isVoidInvasionEnabled() -
getElapsedSeconds
-
getRemainingSeconds
-
getAllowedEntryCount
public int getAllowedEntryCount() -
isAllowPlayersToLeaveViaMap
public boolean isAllowPlayersToLeaveViaMap() -
getEntryCount
-
hasAnyEntry
public boolean hasAnyEntry() -
recordEntry
-
hasReachedEntryLimit
-
getSeesUi
-
isTimeLimitActive
public boolean isTimeLimitActive() -
toggleTimeLimit
-
computeLatestStage
@Nullable public VoidEventStage computeLatestStage(@Nonnull World world, @Nonnull VoidEventConfig config) Calculate the latest active void event stage for the given world and event configuration. -
hasVoidEventReached
Whether the void-event has reached the given second of the world's lifetime. -
getActiveVoidEventStage
The active void-event stage, or null when no void event runs or no stage has started yet. -
getActiveInvasionPortals
The invasion-portal config in effect for the active void-event stage, or null when no portal world exists, no stage is active, or no stage so far defines invasion portals. -
getGameplayConfig
-
getVoidEventConfig
-
getSpawnPoint
-
setSpawnPoint
-
getVoidEventRef
-
isVoidEventActive
public boolean isVoidEventActive() -
setVoidEventRef
-
createFullPacket
-
createUpdatePacket
-
clone
- Specified by:
clonein interfaceResource<EntityStore>- Returns:
- a clone instance of the original resource instance.
-
getResourceType
-
setRemainingSeconds
public static void setRemainingSeconds(@Nonnull World world, double seconds, boolean resyncSchedule)
-