Class DiagramCraftingWindow
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
com.hypixel.hytale.builtin.crafting.window.DiagramCraftingWindow
- All Implemented Interfaces:
ItemContainerWindow,MaterialContainerWindow,ValidatedWindow
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
Window.WindowCloseEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CraftingBench.BenchItemCategoryprivate Stringprivate CombinedItemContainerprivate CombinedItemContainerprivate SimpleItemContainerprivate SimpleItemContainerprivate EventRegistrationprivate Stringprivate static final com.hypixel.hytale.logger.HytaleLoggerprivate SimpleItemContainerFields inherited from class com.hypixel.hytale.builtin.crafting.window.CraftingWindow
CRAFT_COMPLETED, CRAFT_COMPLETED_INSTANT, SET_BLOCK_SETTINGSFields inherited from class com.hypixel.hytale.builtin.crafting.window.BenchWindow
bench, BENCH_UPGRADING, benchState, windowDataFields inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.BlockWindow
blockType, rotationIndex, x, y, zFields inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
CLIENT_REQUESTABLE_WINDOW_TYPES, closeEventRegistry, isDirty, needRebuild, windowType -
Constructor Summary
ConstructorsConstructorDescriptionDiagramCraftingWindow(ComponentAccessor<EntityStore> store, BenchState benchState) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancollectRecipes(List<CraftingRecipe> recipes) protected voidfinalize()private com.google.gson.JsonArraygenerateSlots(CombinedItemContainer combinedStorage, List<CraftingRecipe> recipes) private CraftingBench.BenchItemCategorygetBenchItemCategory(String category, String itemCategory) voidhandleAction(Ref<EntityStore> ref, Store<EntityStore> store, WindowAction action) voidonClose0()booleanonOpen0()private voidupdateInput(ItemContainer container) private voidprivate voidupdateInventory(ComponentAccessor<EntityStore> store, CraftingBench.BenchItemCategory benchItemCategory) Methods inherited from class com.hypixel.hytale.builtin.crafting.window.CraftingWindow
craftSimpleItem, setBlockInteractionStateMethods inherited from class com.hypixel.hytale.builtin.crafting.window.BenchWindow
getBenchTierLevel, getData, getExtraResourcesSection, invalidateExtraResources, isValid, updateBenchTierLevel, updateBenchUpgradeJob, updateCraftingJobMethods inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.BlockWindow
getBlockType, getMaxDistance, getRotationIndex, getX, getY, getZ, setMaxDistance, validateMethods inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
close, consumeIsDirty, consumeNeedRebuild, equals, getId, getPlayerRef, getType, hashCode, init, invalidate, onClose, onOpen, registerCloseEvent, registerCloseEvent, registerCloseEvent, setId, setNeedRebuild
-
Field Details
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
category
-
itemCategory
-
benchItemCategory
-
inputPrimaryContainer
-
inputSecondaryContainer
-
combinedInputItemContainer
-
outputContainer
-
combinedItemContainer
-
inventoryRegistration
-
-
Constructor Details
-
DiagramCraftingWindow
-
-
Method Details
-
finalize
protected void finalize() -
onOpen0
public boolean onOpen0()- Overrides:
onOpen0in classCraftingWindow
-
onClose0
public void onClose0()- Overrides:
onClose0in classCraftingWindow
-
handleAction
public void handleAction(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WindowAction action) - Overrides:
handleActionin classWindow
-
getItemContainer
- Specified by:
getItemContainerin interfaceItemContainerWindow
-
getBenchItemCategory
private CraftingBench.BenchItemCategory getBenchItemCategory(@Nullable String category, @Nullable String itemCategory) -
updateInventory
private void updateInventory(@Nonnull ComponentAccessor<EntityStore> store, @Nonnull CraftingBench.BenchItemCategory benchItemCategory) -
updateInput
-
updateInput
-
collectRecipes
-
generateSlots
@Nonnull private com.google.gson.JsonArray generateSlots(@Nonnull CombinedItemContainer combinedStorage, @Nonnull List<CraftingRecipe> recipes) -
getBenchRecipes
-