SpawnUtil

final class SpawnUtil

Class SpawnUtil. Provides spawnutil functionality for the Hytale server.

java.lang.Object > SpawnUtil

Field Summary

spawnProvider

final ISpawnProvider spawnProvider

Field spawnProvider.

spawnPoint

final Transform spawnPoint

Field spawnPoint.

bodyRotation

final Vector3f bodyRotation

Field bodyRotation.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

Method Detail

applyFirstSpawnTransform

static TransformComponent applyFirstSpawnTransform (@Nonnull final Holder holder, @Nonnull final World world, @Nonnull final WorldConfig worldConfig, @Nonnull final UUID playerUuid)

Method applyFirstSpawnTransform.

Parameters:
@Nonnull final Holder holder
@Nonnull final World world
@Nonnull final WorldConfig worldConfig
@Nonnull final UUID playerUuid

Vector3f

public new Vector3f (0.0f, spawnPoint.getRotation()

Method Vector3f.

Parameters:
0.0f 0.0f
spawnPoint.getRotation( spawnPoint.getRotation(

TransformComponent

public new TransformComponent (spawnPoint.getPosition()

Method TransformComponent.

Parameters:
spawnPoint.getPosition( spawnPoint.getPosition(

applyTransform

static void applyTransform (@Nonnull final Holder holder, @Nonnull final Transform transform)

Method applyTransform.

Parameters:
@Nonnull final Holder holder
@Nonnull final Transform transform