public class PrefabLoadingState
Class PrefabLoadingState. Provides prefabloadingstate functionality for the Hytale server.
java.lang.Object > PrefabLoadingState
Field Summary
currentPhase
Field currentPhase.
totalPrefabs
Field totalPrefabs.
loadedPrefabs
Field loadedPrefabs.
pastedPrefabs
Field pastedPrefabs.
currentPrefabPath
Field currentPrefabPath.
startTimeNanos
Field startTimeNanos.
lastUpdateTimeNanos
Field lastUpdateTimeNanos.
lastNotifyTimeNanos
Field lastNotifyTimeNanos.
Method Detail
PrefabLoadingState
public
PrefabLoadingState
()
Method PrefabLoadingState.
setTotalPrefabs
void
setTotalPrefabs
(final int totalPrefabs)
Method setTotalPrefabs.
- Parameters:
final inttotalPrefabs
setPhase
void
setPhase
(@Nonnull final Phase phase)
Method setPhase.
- Parameters:
@Nonnull final Phasephase
onPrefabLoaded
void
onPrefabLoaded
(@Nullable final Path path)
Method onPrefabLoaded.
- Parameters:
@Nullable final Pathpath
onPrefabPasted
void
onPrefabPasted
(@Nullable final Path path)
Method onPrefabPasted.
- Parameters:
@Nullable final Pathpath
addError
void
addError
(@Nonnull final LoadingError error)
Method addError.
- Parameters:
@Nonnull final LoadingErrorerror
LoadingError
new
LoadingError
(translationKey)
Method LoadingError.
- Parameters:
translationKeytranslationKey
getCurrentPhase
Phase
getCurrentPhase
()
Method getCurrentPhase.
getTotalPrefabs
int
getTotalPrefabs
()
Method getTotalPrefabs.
getLoadedPrefabs
int
getLoadedPrefabs
()
Method getLoadedPrefabs.
getPastedPrefabs
int
getPastedPrefabs
()
Method getPastedPrefabs.
getCurrentPrefabPath
Path
getCurrentPrefabPath
()
Method getCurrentPrefabPath.
getErrors
List
getErrors
()
Method getErrors.
hasErrors
boolean
hasErrors
()
Method hasErrors.
isShuttingDown
boolean
isShuttingDown
()
Method isShuttingDown.
isShutdownComplete
boolean
isShutdownComplete
()
Method isShutdownComplete.
getProgressPercentage
float
getProgressPercentage
()
Method getProgressPercentage.
switch
return
switch
(this.currentPhase.ordinal()
Method switch.
- Parameters:
this.currentPhase.ordinal(this.currentPhase.ordinal(
getElapsedTimeMillis
long
getElapsedTimeMillis
()
Method getElapsedTimeMillis.
getLastNotifyTimeNanos
long
getLastNotifyTimeNanos
()
Method getLastNotifyTimeNanos.
setLastNotifyTimeNanos
void
setLastNotifyTimeNanos
(final long nanos)
Method setLastNotifyTimeNanos.
- Parameters:
final longnanos
if
else
if
(this.currentPhase == Phase.PASTING_PREFABS && this.totalPrefabs > 0)
Method if.
- Parameters:
this.currentPhase == Phase.PASTING_PREFABS && this.totalPrefabs >0
markComplete
void
markComplete
()
Method markComplete.
Phase
private
Phase
(final String translationKey)
Method Phase.
- Parameters:
final StringtranslationKey
getTranslationKey
String
getTranslationKey
()
Method getTranslationKey.
translationKey
String
translationKey
()
Method translationKey.
details
String
details
()
Method details.