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 Holderholder@Nonnull final Worldworld@Nonnull final WorldConfigworldConfig@Nonnull final UUIDplayerUuid
Vector3f
public
new
Vector3f
(0.0f, spawnPoint.getRotation()
Method Vector3f.
- Parameters:
0.0f0.0fspawnPoint.getRotation(spawnPoint.getRotation(
TransformComponent
public
new
TransformComponent
(spawnPoint.getPosition()
Method TransformComponent.
- Parameters:
spawnPoint.getPosition(spawnPoint.getPosition(
applyTransform
Method applyTransform.
- Parameters:
@Nonnull final Holderholder@Nonnull final Transformtransform