UseCoopInteraction

public class UseCoopInteraction extends SimpleBlockInteraction

Class UseCoopInteraction. Provides usecoopinteraction functionality for the Hytale server.

java.lang.Object > SimpleBlockInteraction > UseCoopInteraction

Field Summary

x

final int x

Field x.

z

final int z

Field z.

worldChunk

final WorldChunk worldChunk

Field worldChunk.

chunkStore

final Store chunkStore

Field chunkStore.

coopBlockState

final CoopBlock coopBlockState

Field coopBlockState.

playerRef

final Ref playerRef

Field playerRef.

playerEntity

final LivingEntity playerEntity

Field playerEntity.

playerInventoryContainer

final CombinedItemContainer playerInventoryContainer

Field playerInventoryContainer.

currentBlockType

final BlockType currentBlockType

Field currentBlockType.

Method Detail

interactWithBlock

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

Method interactWithBlock.

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

simulateInteractWithBlock

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

Method simulateInteractWithBlock.

Parameters:
@NonNullDecl final InteractionType type
@NonNullDecl final InteractionContext context
@NullableDecl final ItemStack itemInHand
@NonNullDecl final World world
@NonNullDecl final Vector3i targetBlock