MountedComponent

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 Ref mountedToEntity
final Vector3f attachmentOffset
final MountController controller

getMountedToEntity

public Ref getMountedToEntity ()

Method getMountedToEntity.

getMountedToBlock

public Ref getMountedToBlock ()

Method getMountedToBlock.

getAttachmentOffset

public Vector3f getAttachmentOffset ()

Method getAttachmentOffset.

getControllerType

public MountController getControllerType ()

Method getControllerType.

getBlockMountType

public BlockMountType getBlockMountType ()

Method getBlockMountType.

getMountedDurationMs

public long getMountedDurationMs ()

Method getMountedDurationMs.

consumeNetworkOutdated

public boolean consumeNetworkOutdated ()

Method consumeNetworkOutdated.

clone

public Component clone ()

Method clone.