Class MountedComponent
java.lang.Object
com.hypixel.hytale.builtin.mounts.MountedComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vector3fprivate BlockMountTypeprivate MountControllerprivate booleanprivate Ref<ChunkStore> private Ref<EntityStore> private longFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionMountedComponent(Ref<ChunkStore> mountedToBlock, Vector3f attachmentOffset, BlockMountType blockMountType) MountedComponent(Ref<EntityStore> mountedToEntity, Vector3f attachmentOffset, MountController controller) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanstatic ComponentType<EntityStore, MountedComponent> longMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
mountedToEntity
-
mountedToBlock
-
controller
-
blockMountType
-
attachmentOffset
-
mountStartMs
private long mountStartMs -
isNetworkOutdated
private boolean isNetworkOutdated
-
-
Constructor Details
-
MountedComponent
public MountedComponent(Ref<EntityStore> mountedToEntity, Vector3f attachmentOffset, MountController controller) -
MountedComponent
public MountedComponent(Ref<ChunkStore> mountedToBlock, Vector3f attachmentOffset, BlockMountType blockMountType)
-
-
Method Details
-
getComponentType
-
getMountedToEntity
-
getMountedToBlock
-
getAttachmentOffset
-
getControllerType
-
getBlockMountType
-
getMountedDurationMs
public long getMountedDurationMs() -
consumeNetworkOutdated
public boolean consumeNetworkOutdated() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-