Skip to content

TransformComponent

Package: com.hypixel.hytale.server.core.modules.entity.component

Type: class

Implements: Component

Constructors

java
public TransformComponent()
java
public TransformComponent(@Nonnull Vector3d position, @Nonnull Vector3f rotation)

Static Fields

NameType
CODECBuilderCodec

Fields

NameType
positionVector3d
rotationVector3f
sentTransformModelTransform
chunkWorldChunk
chunkRefRef

Static Methods

MethodReturns
getComponentType()ComponentType

Methods

MethodReturns
getPosition()Vector3d
setPosition(@Nonnull Vector3d position)void
teleportPosition(@Nonnull Vector3d position)void
getRotation()Vector3f
setRotation(@Nonnull Vector3f rotation)void
getTransform()Transform
Transform(this.position, this.rotation)return new
teleportRotation(@Nonnull Vector3f rotation)void
getSentTransform()ModelTransform
getChunk()WorldChunk
getChunkRef()Ref
markChunkDirty(@Nonnull ComponentAccessor componentAccessor)void
setChunkLocation(@Nullable Ref chunkRef, @Nullable WorldChunk chunk)void
clone()TransformComponent

Unofficial documentation · Any questions? Found a mistake? Have something you want documented? Join the Discord server at the top and let us know in #hytale!