Contents
Class CraftingWindow
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.windows.Window
com.hypixel.hytale.server.core.entity.entities.player.windows.BlockWindow
com.hypixel.hytale.builtin.crafting.window.BenchWindow
com.hypixel.hytale.builtin.crafting.window.CraftingWindow
- All Implemented Interfaces:
MaterialContainerWindow, ValidatedWindow
- Direct Known Subclasses:
DiagramCraftingWindow, SimpleCraftingWindow, StructuralCraftingWindow
- Since:
- 28/11/17
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Window
Window.WindowCloseEvent -
Field Summary
Fields inherited from class Window
CLIENT_REQUESTABLE_WINDOW_TYPES -
Constructor Summary
ConstructorsConstructorDescriptionCraftingWindow(WindowType windowType, int x, int y, int z, int rotationIndex, BlockType blockType, BenchBlock benchBlock) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancraftSimpleItem(Store<EntityStore> store, Ref<EntityStore> ref, CraftingManager craftingManager, CraftRecipeAction action) Called to craft a simple item from the given actionvoidonClose0(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class BenchWindow
getData, getExtraResourcesSection, invalidateExtraResources, isValid, setBlockInteractionState, updateBenchTierLevel, updateBenchUpgradeJob, updateCraftingJob, updateQueueSizeMethods inherited from class BlockWindow
getBlockType, getMaxDistance, getRotationIndex, getX, getY, getZ, setMaxDistance, validateMethods inherited from class Window
close, equals, getId, getPlayerRef, getType, handleAction, hashCode, init, registerCloseEvent, registerCloseEvent, registerCloseEvent, setId
-
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:
onClose0in classBenchWindow
-
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 accessref- The entity store ref of the playercraftingManager- The affiliated crafting manageraction- The craft recipe action- Returns:
trueif the craft was a success,falseotherwise
-