SeatingInteraction

public class SeatingInteraction extends SimpleBlockInteraction

Class SeatingInteraction. Provides seatinginteraction functionality for the Hytale server.

java.lang.Object > SimpleBlockInteraction > SeatingInteraction

Field Summary

ref

final Ref ref

Field ref.

player

final Player player

Field player.

rawTarget

final BlockPosition rawTarget

Field rawTarget.

whereWasHit

final Vector3f whereWasHit

Field whereWasHit.

result

final BlockMountAPI.BlockMountResult result

Field result.

soundEventIndex

final int soundEventIndex

Field soundEventIndex.

soundSet

final BlockSoundSet soundSet

Field soundSet.

seatSoundId

final String seatSoundId

Field seatSoundId.

soundEventIndex2

final int soundEventIndex2

Field soundEventIndex2.

Method Detail

interactWithBlock

protected void interactWithBlock (@Nonnull final World world, @Nonnull final CommandBuffer commandBuffer, @Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nullable final ItemStack itemInHand, @Nonnull final Vector3i targetBlock, @Nonnull final CooldownHandler cooldownHandler)

Method interactWithBlock.

Parameters:
@Nonnull final World world
@Nonnull final CommandBuffer commandBuffer
@Nonnull final InteractionType type
@Nonnull final InteractionContext context
@Nullable final ItemStack itemInHand
@Nonnull final Vector3i targetBlock
@Nonnull final CooldownHandler cooldownHandler

if

public else if (result instanceof final BlockMountAPI.Mounted mounted)

Method if.

Parameters:
result instanceof final BlockMountAPI.Mounted mounted

simulateInteractWithBlock

protected void simulateInteractWithBlock (@Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nullable final ItemStack itemInHand, @Nonnull final World world, @Nonnull final Vector3i targetBlock)

Method simulateInteractWithBlock.

Parameters:
@Nonnull final InteractionType type
@Nonnull final InteractionContext context
@Nullable final ItemStack itemInHand
@Nonnull final World world
@Nonnull final Vector3i targetBlock