public class DiagramCraftingWindow extendsCraftingWindowimplementsItemContainerWindow
Class DiagramCraftingWindow. Provides diagramcraftingwindow functionality for the Hytale server.
java.lang.Object > CraftingWindow > DiagramCraftingWindow
Field Summary
category
Field category.
itemCategory
Field itemCategory.
benchItemCategory
Field benchItemCategory.
inputPrimaryContainer
Field inputPrimaryContainer.
inputSecondaryContainer
Field inputSecondaryContainer.
combinedInputItemContainer
Field combinedInputItemContainer.
outputContainer
Field outputContainer.
combinedItemContainer
Field combinedItemContainer.
inventoryRegistration
Field inventoryRegistration.
bench
Field bench.
benchCategory
Field benchCategory.
result
Field result.
playerRef
Field playerRef.
ref
Field ref.
store
Field store.
player
Field player.
inventory
Field inventory.
recipes
Field recipes.
itemStacks
Field itemStacks.
craftingManager
Field craftingManager.
world
Field world.
ignored
Field ignored.
updateAction
Field updateAction.
ignored2
Field ignored2.
itemStack
Field itemStack.
allSlotsFull
Field allSlotsFull.
recipe
Field recipe.
completedState
Field completedState.
craftingBench
Field craftingBench.
playerComponent
Field playerComponent.
primaryItemStack
Field primaryItemStack.
combinedStorage
Field combinedStorage.
output
Field output.
knownRecipes
Field knownRecipes.
inputCapacity
Field inputCapacity.
slots
Field slots.
benchRecipes
Field benchRecipes.
slot
Field slot.
handle
Field handle.
Method Detail
DiagramCraftingWindow
public
DiagramCraftingWindow
(@Nonnull final ComponentAccessor store, final BenchState benchState)
Method DiagramCraftingWindow.
- Parameters:
@Nonnull final ComponentAccessorstorefinal BenchStatebenchState
finalize
void
finalize
()
Method finalize.
onOpen0
boolean
onOpen0
()
Method onOpen0.
onClose0
void
onClose0
()
Method onClose0.
handleAction
void
handleAction
(@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final WindowAction action)
Method handleAction.
- Parameters:
@Nonnull final Refref@Nonnull final Storestore@Nonnull final WindowActionaction
getBenchItemCategory
CraftingBench.BenchItemCategory
getBenchItemCategory
(@Nullable final String category, @Nullable final String itemCategory)
Method getBenchItemCategory.
- Parameters:
@Nullable final Stringcategory@Nullable final StringitemCategory
updateInventory
void
updateInventory
(@Nonnull final ComponentAccessor store, @Nonnull final CraftingBench.BenchItemCategory benchItemCategory)
Method updateInventory.
- Parameters:
@Nonnull final ComponentAccessorstore@Nonnull final CraftingBench.BenchItemCategorybenchItemCategory
SimpleItemContainer
new
SimpleItemContainer
((short)
Method SimpleItemContainer.
- Parameters:
(short(short
CombinedItemContainer
new
CombinedItemContainer
(new ItemContainer[] { this.inputPrimaryContainer, this.inputSecondaryContainer })
Method CombinedItemContainer.
- Parameters:
new ItemContainer[] {this.inputPrimaryContainerthis.inputSecondaryContainer}
updateInput
void
updateInput
(@Nonnull final ItemContainer.ItemContainerChangeEvent event)
Method updateInput.
- Parameters:
@Nonnull final ItemContainer.ItemContainerChangeEventevent
if
else
if
(needsDropSlot)
Method if.
- Parameters:
needsDropSlotneedsDropSlot
ItemStack
new
ItemStack
("Unknown", 1)
Method ItemStack.
- Parameters:
"Unknown""Unknown"11
collectRecipes
boolean
collectRecipes
(@Nonnull final List recipes)
Method collectRecipes.
- Parameters:
@Nonnull final Listrecipes
generateSlots
JsonArray
generateSlots
(@Nonnull final CombinedItemContainer combinedStorage, @Nonnull final List recipes)
Method generateSlots.
- Parameters:
@Nonnull final CombinedItemContainercombinedStorage@Nonnull final Listrecipes
getBenchRecipes
List
getBenchRecipes
()
Method getBenchRecipes.
handle
MethodHandle
handle
()
Method handle.
ensureHandle
MethodHandle
ensureHandle
()
Method ensureHandle.
invoke
int
invoke
(Object p0, int p1)
Method invoke.
- Parameters:
Objectp0intp1