Class StructuralCraftingWindow
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.StructuralCraftingWindow
- 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 final CombinedItemContainerprivate final SimpleItemContainerprivate EventRegistrationprivate static final intprivate final SimpleItemContainerprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> private intFields 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, LOGGER, needRebuild, windowType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidchangeBlockType(Ref<EntityStore> ref, boolean down, Store<EntityStore> store) private it.unimi.dsi.fastutil.objects.ObjectList<CraftingRecipe> getMatchingRecipes(ItemStack inputStack) private static intgetSortingPriority(StructuralCraftingBench bench, CraftingRecipe recipe) voidhandleAction(Ref<EntityStore> ref, Store<EntityStore> store, WindowAction action) private static booleanhasHeaderCategory(StructuralCraftingBench bench, CraftingRecipe recipe) private booleanisValidInput(FilterActionType filterActionType, ItemContainer itemContainer, short i, ItemStack itemStack) voidonClose0()booleanonOpen0()private voidplayCraftSound(Ref<EntityStore> ref, Store<EntityStore> store, Item item) private static voidsortRecipes(it.unimi.dsi.fastutil.objects.ObjectList<CraftingRecipe> matching, StructuralCraftingBench structuralBench) private voidMethods 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
-
MAX_OPTIONS
private static final int MAX_OPTIONS- See Also:
-
inputContainer
-
optionsContainer
-
combinedItemContainer
-
optionSlotToRecipeMap
-
selectedSlot
private int selectedSlot -
inventoryRegistration
-
-
Constructor Details
-
StructuralCraftingWindow
-
-
Method Details
-
isValidInput
private boolean isValidInput(FilterActionType filterActionType, ItemContainer itemContainer, short i, ItemStack itemStack) -
sortRecipes
private static void sortRecipes(it.unimi.dsi.fastutil.objects.ObjectList<CraftingRecipe> matching, StructuralCraftingBench structuralBench) -
hasHeaderCategory
-
getSortingPriority
-
handleAction
public void handleAction(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WindowAction action) - Overrides:
handleActionin classWindow
-
playCraftSound
-
changeBlockType
private void changeBlockType(@Nonnull Ref<EntityStore> ref, boolean down, @Nonnull Store<EntityStore> store) -
getItemContainer
- Specified by:
getItemContainerin interfaceItemContainerWindow
-
onOpen0
public boolean onOpen0()- Overrides:
onOpen0in classCraftingWindow
-
onClose0
public void onClose0()- Overrides:
onClose0in classCraftingWindow
-
updateRecipes
private void updateRecipes() -
getMatchingRecipes
@NullableDecl private it.unimi.dsi.fastutil.objects.ObjectList<CraftingRecipe> getMatchingRecipes(@Nullable ItemStack inputStack)
-