HarvestCropInteraction

public class HarvestCropInteraction extends SimpleBlockInteraction

Class HarvestCropInteraction. Provides harvestcropinteraction functionality for the Hytale server.

java.lang.Object > SimpleBlockInteraction > HarvestCropInteraction

Field Summary

ref

final Ref ref

Field ref.

chunkStore

final ChunkStore chunkStore

Field chunkStore.

chunkIndex

final long chunkIndex

Field chunkIndex.

chunkRef

final Ref chunkRef

Field chunkRef.

blockChunkComponent

final BlockChunk blockChunkComponent

Field blockChunkComponent.

section

final BlockSection section

Field section.

worldChunkComponent

final WorldChunk worldChunkComponent

Field worldChunkComponent.

blockType

final BlockType blockType

Field blockType.

rotationIndex

final int rotationIndex

Field rotationIndex.

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

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

toString

public String toString ()

Method toString.