SimpleCraftingWindow

public class SimpleCraftingWindow extends CraftingWindow implements MaterialContainerWindow

Class SimpleCraftingWindow. Provides simplecraftingwindow functionality for the Hytale server.

java.lang.Object > CraftingWindow > SimpleCraftingWindow

Field Summary

craftingManager

final CraftingManager craftingManager

Field craftingManager.

world

final World world

Field world.

recipeId

final String recipeId

Field recipeId.

quantity

final int quantity

Field quantity.

craftRecipe

final CraftingRecipe craftRecipe

Field craftRecipe.

playerRef

final PlayerRef playerRef

Field playerRef.

player

final Player player

Field player.

combined

final CombinedItemContainer combined

Field combined.

playerAndContainerInventory

final CombinedItemContainer playerAndContainerInventory

Field playerAndContainerInventory.

completedState

final String completedState

Field completedState.

pos

final Vector3d pos

Field pos.

pos2

final Vector3d pos2

Field pos2.

Method Detail

SimpleCraftingWindow

public public SimpleCraftingWindow (final BenchState benchState)

Method SimpleCraftingWindow.

Parameters:
final BenchState benchState

init

public void init (@Nonnull final PlayerRef playerRef, @Nonnull final WindowManager manager)

Method init.

Parameters:
@Nonnull final PlayerRef playerRef
@Nonnull final WindowManager manager

handleAction

public void handleAction (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final WindowAction action)

Method handleAction.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final WindowAction action

CombinedItemContainer

public new CombinedItemContainer (new ItemContainer[] { combined, this.getExtraResourcesSection()

Method CombinedItemContainer.

Parameters:
new ItemContainer[] { combined
this.getExtraResourcesSection( this.getExtraResourcesSection(

if

public else if (action instanceof TierUpgradeAction && craftingManager.startTierUpgrade(ref, store, this)

Method if.

Parameters:
action instanceof TierUpgradeAction && craftingManager.startTierUpgrade(ref
store store
this this