Class CraftingWindow

All Implemented Interfaces:
MaterialContainerWindow, ValidatedWindow
Direct Known Subclasses:
DiagramCraftingWindow, SimpleCraftingWindow, StructuralCraftingWindow

public abstract class CraftingWindow extends BenchWindow
Since:
28/11/17
Version:
1.0
  • Constructor Details

    • CraftingWindow

      public CraftingWindow(@Nonnull WindowType windowType, int x, int y, int z, int rotationIndex, @Nonnull BlockType blockType, @Nonnull BenchBlock benchBlock)
  • Method Details

    • onClose0

      public void onClose0(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      Overrides:
      onClose0 in class BenchWindow
    • craftSimpleItem

      public static boolean craftSimpleItem(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull CraftingManager craftingManager, @Nonnull CraftRecipeAction action)
      Called to craft a simple item from the given action
      Parameters:
      store - The entity store for component access
      ref - The entity store ref of the player
      craftingManager - The affiliated crafting manager
      action - The craft recipe action
      Returns:
      true if the craft was a success, false otherwise