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 PortalTypeportalTypefinal inttimeLimitSecondsfinal PortalRemovalConditionremovalConditionfinal PortalGameplayConfiggameplayConfig
exists
public
boolean
exists
()
Method exists.
getTimeLimitSeconds
public
int
getTimeLimitSeconds
()
Method getTimeLimitSeconds.
getElapsedSeconds
public
double
getElapsedSeconds
(final World world)
Method getElapsedSeconds.
- Parameters:
final Worldworld
getRemainingSeconds
public
double
getRemainingSeconds
(final World world)
Method getRemainingSeconds.
- Parameters:
final Worldworld
setRemainingSeconds
public
void
setRemainingSeconds
(final World world, final double seconds)
Method setRemainingSeconds.
- Parameters:
final Worldworldfinal doubleseconds
getDiedInWorld
public
Set
getDiedInWorld
()
Method getDiedInWorld.
getSeesUi
public
Set
getSeesUi
()
Method getSeesUi.
isVoidEventActive
public
boolean
isVoidEventActive
()
Method isVoidEventActive.
createFullPacket
Method createFullPacket.
- Parameters:
final Worldworld
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(worldthis.createStateForPacket(world
createUpdatePacket
Method createUpdatePacket.
- Parameters:
final Worldworld
createStateForPacket
Method createStateForPacket.
- Parameters:
final Worldworld
PortalState
public
new
PortalState
((int)
Method PortalState.
- Parameters:
(int(int