public class MountedComponent implements Component
Component for tracking mounted state. Attach this component to entities that need to track mounted data.
java.lang.Object > MountedComponent
Field Summary
mountedToEntity
private
Ref
mountedToEntity
Field mountedToEntity.
mountedToBlock
private
Ref
mountedToBlock
Field mountedToBlock.
controller
private
MountController
controller
Field controller.
blockMountType
private
BlockMountType
blockMountType
Field blockMountType.
attachmentOffset
private
Vector3f
attachmentOffset
Field attachmentOffset.
mountStartMs
private
long
mountStartMs
Field mountStartMs.
isNetworkOutdated
private
boolean
isNetworkOutdated
Field isNetworkOutdated.
tmp
final
boolean
tmp
Field tmp.
Method Detail
getComponentType
public
MountedComponent>
getComponentType
()
Method getComponentType.
MountedComponent
public
public
MountedComponent
(final Ref mountedToEntity, final Vector3f attachmentOffset, final MountController controller)
Method MountedComponent.
- Parameters:
final RefmountedToEntityfinal Vector3fattachmentOffsetfinal MountControllercontroller
getMountedDurationMs
public
long
getMountedDurationMs
()
Method getMountedDurationMs.
consumeNetworkOutdated
public
boolean
consumeNetworkOutdated
()
Method consumeNetworkOutdated.