OpenBenchPageInteraction

public class OpenBenchPageInteraction extends SimpleBlockInteraction

Class OpenBenchPageInteraction. Provides openbenchpageinteraction functionality for the Hytale server.

java.lang.Object > SimpleBlockInteraction > OpenBenchPageInteraction

Field Summary

pageType

private PageType pageType

Field pageType.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

playerComponent

final Player playerComponent

Field playerComponent.

craftingManagerComponent

final CraftingManager craftingManagerComponent

Field craftingManagerComponent.

state

final BlockState state

Field state.

pageManager

final PageManager pageManager

Field pageManager.

ref2

final Ref ref2

Field ref2.

store2

final Store store2

Field store2.

bench

final Page bench

Field bench.

canCloseThroughInteraction

final boolean canCloseThroughInteraction

Field canCloseThroughInteraction.

windows

final Window[] windows

Field windows.

n

final int n

Field n.

Method Detail

OpenBenchPageInteraction

public public OpenBenchPageInteraction (@Nonnull final String id, @Nonnull final PageType pageType)

Method OpenBenchPageInteraction.

Parameters:
@Nonnull final String id
@Nonnull final PageType pageType

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

RootInteraction

public new RootInteraction (OpenBenchPageInteraction.SIMPLE_CRAFTING.getId()

Method RootInteraction.

Parameters:
OpenBenchPageInteraction.SIMPLE_CRAFTING.getId( OpenBenchPageInteraction.SIMPLE_CRAFTING.getId(

KeyedCodec

public new KeyedCodec ("Page", new EnumCodec(PageType.class)

Method KeyedCodec.

Parameters:
"Page" "Page"
new EnumCodec(PageType.class