CraftingWindow

abstract class CraftingWindow extends BenchWindow

Class CraftingWindow. Provides craftingwindow functionality for the Hytale server.

java.lang.Object > BenchWindow > CraftingWindow

Field Summary

categories

final JsonArray categories

Field categories.

bench

final Bench bench

Field bench.

category

final JsonObject category

Field category.

recipes

final Set recipes

Field recipes.

recipesArray

final JsonArray recipesArray

Field recipesArray.

itemCategories

final JsonArray itemCategories

Field itemCategories.

itemCategory

final JsonObject itemCategory

Field itemCategory.

playerRef

final PlayerRef playerRef

Field playerRef.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

gameplayConfig

final GameplayConfig gameplayConfig

Field gameplayConfig.

memoriesConfig

final MemoriesGameplayConfig memoriesConfig

Field memoriesConfig.

memoriesAmountPerLevel

final int[] memoriesAmountPerLevel

Field memoriesAmountPerLevel.

memoriesPerLevel

final JsonArray memoriesPerLevel

Field memoriesPerLevel.

world

final World world

Field world.

worldChunk

final WorldChunk worldChunk

Field worldChunk.

blockType

final BlockType blockType

Field blockType.

recipeId

final String recipeId

Field recipeId.

quantity

final int quantity

Field quantity.

recipe

final CraftingRecipe recipe

Field recipe.

player

final Player player

Field player.

Method Detail

CraftingWindow

public public CraftingWindow (@Nonnull final WindowType windowType, final BenchState benchState)

Method CraftingWindow.

Parameters:
@Nonnull final WindowType windowType
final BenchState benchState

onOpen0

protected boolean onOpen0 ()

Method onOpen0.

onClose0

public void onClose0 ()

Method onClose0.

setBlockInteractionState

public void setBlockInteractionState (@Nonnull final String state, @Nonnull final World world, final int setBlockSettings)

Method setBlockInteractionState.

Parameters:
@Nonnull final String state
@Nonnull final World world
final int setBlockSettings

craftSimpleItem

static boolean craftSimpleItem (@Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final CraftingManager craftingManager, @Nonnull final CraftRecipeAction action)

Method craftSimpleItem.

Parameters:
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final CraftingManager craftingManager
@Nonnull final CraftRecipeAction action