PortalWorld

public class PortalWorld implements Resource

Class PortalWorld. Provides portalworld functionality for the Hytale server.

java.lang.Object > PortalWorld

Field Summary

portalTypeId

private String portalTypeId

Field portalTypeId.

timeLimitSeconds

private int timeLimitSeconds

Field timeLimitSeconds.

worldRemovalCondition

private PortalRemovalCondition worldRemovalCondition

Field worldRemovalCondition.

storedGameplayConfig

private PortalGameplayConfig storedGameplayConfig

Field storedGameplayConfig.

diedInWorld

private Set diedInWorld

Field diedInWorld.

seesUi

private Set seesUi

Field seesUi.

spawnPoint

private Transform spawnPoint

Field spawnPoint.

voidEventRef

private Ref voidEventRef

Field voidEventRef.

gameplayConfig

final GameplayConfig gameplayConfig

Field gameplayConfig.

portalGameplayConfig

final PortalGameplayConfig portalGameplayConfig

Field portalGameplayConfig.

hasBreach

final boolean hasBreach

Field hasBreach.

portalDef

final PortalDef portalDef

Field portalDef.

breachSeconds

final int breachSeconds

Field breachSeconds.

clone

final PortalWorld clone

Field clone.

Method Detail

getResourceType

public PortalWorld> getResourceType ()

Method getResourceType.

init

public void init (final PortalType portalType, final int timeLimitSeconds, final PortalRemovalCondition removalCondition, final PortalGameplayConfig gameplayConfig)

Method init.

Parameters:
final PortalType portalType
final int timeLimitSeconds
final PortalRemovalCondition removalCondition
final PortalGameplayConfig gameplayConfig

getPortalType

public PortalType getPortalType ()

Method getPortalType.

exists

public boolean exists ()

Method exists.

getTimeLimitSeconds

public int getTimeLimitSeconds ()

Method getTimeLimitSeconds.

getElapsedSeconds

public double getElapsedSeconds (final World world)

Method getElapsedSeconds.

Parameters:
final World world

getRemainingSeconds

public double getRemainingSeconds (final World world)

Method getRemainingSeconds.

Parameters:
final World world

setRemainingSeconds

public void setRemainingSeconds (final World world, final double seconds)

Method setRemainingSeconds.

Parameters:
final World world
final double seconds

getDiedInWorld

public Set getDiedInWorld ()

Method getDiedInWorld.

getSeesUi

public Set getSeesUi ()

Method getSeesUi.

getGameplayConfig

public PortalGameplayConfig getGameplayConfig ()

Method getGameplayConfig.

getVoidEventConfig

public VoidEventConfig getVoidEventConfig ()

Method getVoidEventConfig.

getSpawnPoint

public Transform getSpawnPoint ()

Method getSpawnPoint.

setSpawnPoint

public void setSpawnPoint (final Transform spawnPoint)

Method setSpawnPoint.

Parameters:
final Transform spawnPoint

getVoidEventRef

public Ref getVoidEventRef ()

Method getVoidEventRef.

isVoidEventActive

public boolean isVoidEventActive ()

Method isVoidEventActive.

setVoidEventRef

public void setVoidEventRef (final Ref voidEventRef)

Method setVoidEventRef.

Parameters:
final Ref voidEventRef

createFullPacket

public UpdatePortal createFullPacket (final World world)

Method createFullPacket.

Parameters:
final World world

PortalDef

public new PortalDef (this.getPortalType()

Method PortalDef.

Parameters:
this.getPortalType( this.getPortalType(

UpdatePortal

public new UpdatePortal (this.createStateForPacket(world)

Method UpdatePortal.

Parameters:
this.createStateForPacket(world this.createStateForPacket(world

createUpdatePacket

public UpdatePortal createUpdatePacket (final World world)

Method createUpdatePacket.

Parameters:
final World world

createStateForPacket

private PortalState createStateForPacket (final World world)

Method createStateForPacket.

Parameters:
final World world

PortalState

public new PortalState ((int)

Method PortalState.

Parameters:
(int (int

clone

public Resource clone ()

Method clone.