Class PortalWorld
java.lang.Object
com.hypixel.hytale.builtin.portals.resources.PortalWorld
- All Implemented Interfaces:
Resource<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Transformprivate PortalGameplayConfigprivate intprivate Ref<EntityStore> private PortalRemovalConditionFields inherited from interface com.hypixel.hytale.component.Resource
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()createFullPacket(World world) private PortalStatecreateStateForPacket(World world) createUpdatePacket(World world) booleanexists()doublegetElapsedSeconds(World world) doublegetRemainingSeconds(World world) static ResourceType<EntityStore, PortalWorld> intvoidinit(PortalType portalType, int timeLimitSeconds, PortalRemovalCondition removalCondition, PortalGameplayConfig gameplayConfig) booleanvoidsetRemainingSeconds(World world, double seconds) voidsetSpawnPoint(Transform spawnPoint) voidsetVoidEventRef(Ref<EntityStore> voidEventRef)
-
Field Details
-
portalTypeId
-
timeLimitSeconds
private int timeLimitSeconds -
worldRemovalCondition
-
storedGameplayConfig
-
diedInWorld
-
seesUi
-
spawnPoint
-
voidEventRef
-
-
Constructor Details
-
PortalWorld
public PortalWorld()
-
-
Method Details
-
getResourceType
-
init
public void init(PortalType portalType, int timeLimitSeconds, PortalRemovalCondition removalCondition, PortalGameplayConfig gameplayConfig) -
getPortalType
-
exists
public boolean exists() -
getTimeLimitSeconds
public int getTimeLimitSeconds() -
getElapsedSeconds
-
getRemainingSeconds
-
setRemainingSeconds
-
getDiedInWorld
-
getSeesUi
-
getGameplayConfig
-
getVoidEventConfig
-
getSpawnPoint
-
setSpawnPoint
-
getVoidEventRef
-
isVoidEventActive
public boolean isVoidEventActive() -
setVoidEventRef
-
createFullPacket
-
createUpdatePacket
-
createStateForPacket
-
clone
- Specified by:
clonein interfaceResource<EntityStore>- Overrides:
clonein classObject
-