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 Stringid@Nonnull final PageTypepageType
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 Worldworld@Nonnull final CommandBuffercommandBuffer@Nonnull final InteractionTypetype@Nonnull final InteractionContextcontext@Nullable final ItemStackitemInHand@Nonnull final Vector3itargetBlock@Nonnull final CooldownHandlercooldownHandler
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 InteractionTypetype@Nonnull final InteractionContextcontext@Nullable final ItemStackitemInHand@Nonnull final Worldworld@Nonnull final Vector3itargetBlock
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"newEnumCodec(PageType.class