InteractionModule

public class InteractionModule extends JavaPlugin

Class InteractionModule. Provides interactionmodule functionality for the Hytale server.

java.lang.Object > JavaPlugin > InteractionModule

Field Summary

activeHotbarSlot

final byte activeHotbarSlot

Field activeHotbarSlot.

mouseButtonType

final MouseButtonType mouseButtonType

Field mouseButtonType.

inventory

final Inventory inventory

Field inventory.

itemInHand

final ItemStack itemInHand

Field itemInHand.

itemInOffHand

final ItemStack itemInOffHand

Field itemInOffHand.

primaryItem

final Item primaryItem

Field primaryItem.

secondaryItem

final Item secondaryItem

Field secondaryItem.

worldInteraction_

final WorldInteraction worldInteraction_

Field worldInteraction_.

blockPositionPacket

final BlockPosition blockPositionPacket

Field blockPositionPacket.

entityComponentStore

final EntityStore entityComponentStore

Field entityComponentStore.

targetBlock

final Vector3i targetBlock

Field targetBlock.

entityReference

final Ref entityReference

Field entityReference.

cameraManagerComponent

final CameraManager cameraManagerComponent

Field cameraManagerComponent.

Method Detail

get

static InteractionModule get ()

Method get.

InteractionModule

public public InteractionModule (@Nonnull final JavaPluginInit init)

Method InteractionModule.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

handledLoadedRootInteractions

static void handledLoadedRootInteractions (@Nonnull final LoadedAssetsEvent event)

Method handledLoadedRootInteractions.

Parameters:
@Nonnull final LoadedAssetsEvent event

handledLoadedInteractions

static void handledLoadedInteractions (@Nonnull final LoadedAssetsEvent event)

Method handledLoadedInteractions.

Parameters:
@Nonnull final LoadedAssetsEvent event

handledRemovedInteractions

static void handledRemovedInteractions (@Nonnull final RemovedAssetsEvent event)

Method handledRemovedInteractions.

Parameters:
@Nonnull final RemovedAssetsEvent event

doMouseInteraction

public void doMouseInteraction (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor, @Nonnull final MouseInteraction packet, @Nonnull final Player playerComponent, @Nonnull final PlayerRef playerRefComponent)

Method doMouseInteraction.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor
@Nonnull final MouseInteraction packet
@Nonnull final Player playerComponent
@Nonnull final PlayerRef playerRefComponent

if

public else if (mouseButtonType == MouseButtonType.Right && secondaryItem != null)

Method if.

Parameters:
mouseButtonType == MouseButtonType.Right && secondaryItem != null

PlayerMouseButtonEvent

public new PlayerMouseButtonEvent (ref, playerComponent, playerRefComponent, packet.clientTimestamp, item, targetBlock, targetEntity, packet.screenPoint, packet.mouseButton)

Method PlayerMouseButtonEvent.

Parameters:
ref ref
playerComponent playerComponent
playerRefComponent playerRefComponent
packet.clientTimestamp packet.clientTimestamp
item item
targetBlock targetBlock
targetEntity targetEntity
packet.screenPoint packet.screenPoint
packet.mouseButton packet.mouseButton

PlayerMouseMotionEvent

public new PlayerMouseMotionEvent (ref, playerComponent, packet.clientTimestamp, item, targetBlock, targetEntity, packet.screenPoint, packet.mouseMotion)

Method PlayerMouseMotionEvent.

Parameters:
ref ref
playerComponent playerComponent
packet.clientTimestamp packet.clientTimestamp
item item
targetBlock targetBlock
targetEntity targetEntity
packet.screenPoint packet.screenPoint
packet.mouseMotion packet.mouseMotion

Vector2d

public new Vector2d (packet.screenPoint.x, packet.screenPoint.y)

Method Vector2d.

Parameters:
packet.screenPoint.x packet.screenPoint.x
packet.screenPoint.y packet.screenPoint.y

getChainingDataComponent

public ChainingInteraction.Data> getChainingDataComponent ()

Method getChainingDataComponent.

getInteractionsComponentType

public Interactions> getInteractionsComponentType ()

Method getInteractionsComponentType.

getInteractionManagerComponent

public InteractionManager> getInteractionManagerComponent ()

Method getInteractionManagerComponent.

getPlacedByComponentType

public PlacedByInteractionComponent> getPlacedByComponentType ()

Method getPlacedByComponentType.

getBlockCounterResourceType

public BlockCounter> getBlockCounterResourceType ()

Method getBlockCounterResourceType.

getTrackedPlacementComponentType

public TrackedPlacement> getTrackedPlacementComponentType ()

Method getTrackedPlacementComponentType.