StructuralCraftingWindow

public class StructuralCraftingWindow extends CraftingWindow implements ItemContainerWindow

Class StructuralCraftingWindow. Provides structuralcraftingwindow functionality for the Hytale server.

java.lang.Object > CraftingWindow > StructuralCraftingWindow

Field Summary

selectedSlot

private int selectedSlot

Field selectedSlot.

inventoryRegistration

private EventRegistration inventoryRegistration

Field inventoryRegistration.

structuralBench

final StructuralCraftingBench structuralBench

Field structuralBench.

matchingRecipes

final ObjectList matchingRecipes

Field matchingRecipes.

aHasHeaderCategory

final boolean aHasHeaderCategory

Field aHasHeaderCategory.

bHasHeaderCategory

final boolean bHasHeaderCategory

Field bHasHeaderCategory.

categoryA

final int categoryA

Field categoryA.

categoryB

final int categoryB

Field categoryB.

categoryCompare

final int categoryCompare

Field categoryCompare.

craftingManager

final CraftingManager craftingManager

Field craftingManager.

selectAction

final SelectSlotAction selectAction

Field selectAction.

newSlot

final int newSlot

Field newSlot.

craftAction

final CraftRecipeAction craftAction

Field craftAction.

output

final ItemStack output

Field output.

quantity

final int quantity

Field quantity.

recipeId

final String recipeId

Field recipeId.

recipe

final CraftingRecipe recipe

Field recipe.

primaryOutput

final MaterialQuantity primaryOutput

Field primaryOutput.

primaryOutputItemId

final String primaryOutputItemId

Field primaryOutputItemId.

primaryOutputItem

final Item primaryOutputItem

Field primaryOutputItem.

changeBlockAction

final ChangeBlockAction changeBlockAction

Field changeBlockAction.

soundSet

final ItemSoundSet soundSet

Field soundSet.

dragSound

final String dragSound

Field dragSound.

dragSoundIndex

final int dragSoundIndex

Field dragSoundIndex.

item

final ItemStack item

Field item.

set

final BlockGroup set

Field set.

next

final String next

Field next.

desiredItem

final Item desiredItem

Field desiredItem.

playerRef

final PlayerRef playerRef

Field playerRef.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

player

final Player player

Field player.

inventory

final Inventory inventory

Field inventory.

itemStacks

final List itemStacks

Field itemStacks.

inputStack

final ItemStack inputStack

Field inputStack.

match

final CraftingRecipe match

Field match.

optionSlotRecipes

final JsonArray optionSlotRecipes

Field optionSlotRecipes.

recipes

final List recipes

Field recipes.

inputMaterials

final List inputMaterials

Field inputMaterials.

handle

final MethodHandle handle

Field handle.

Method Detail

StructuralCraftingWindow

public public StructuralCraftingWindow (final BenchState benchState)

Method StructuralCraftingWindow.

Parameters:
final BenchState benchState

SimpleItemContainer

public new SimpleItemContainer ((short)

Method SimpleItemContainer.

Parameters:
(short (short

isValidInput

private boolean isValidInput (final FilterActionType filterActionType, final ItemContainer itemContainer, final short i, final ItemStack itemStack)

Method isValidInput.

Parameters:
final FilterActionType filterActionType
final ItemContainer itemContainer
final short i
final ItemStack itemStack

sortRecipes

static void sortRecipes (final ObjectList matching, final StructuralCraftingBench structuralBench)

Method sortRecipes.

Parameters:
final ObjectList matching
final StructuralCraftingBench structuralBench

hasHeaderCategory

static boolean hasHeaderCategory (final StructuralCraftingBench bench, final CraftingRecipe recipe)

Method hasHeaderCategory.

Parameters:
final StructuralCraftingBench bench
final CraftingRecipe recipe

getSortingPriority

static int getSortingPriority (final StructuralCraftingBench bench, final CraftingRecipe recipe)

Method getSortingPriority.

Parameters:
final StructuralCraftingBench bench
final CraftingRecipe recipe

handleAction

public void handleAction (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final WindowAction action)

Method handleAction.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final WindowAction action

playCraftSound

private void playCraftSound (final Ref ref, final Store store, final Item item)

Method playCraftSound.

Parameters:
final Ref ref
final Store store
final Item item

changeBlockType

private void changeBlockType (@Nonnull final Ref ref, final boolean down, @Nonnull final Store store)

Method changeBlockType.

Parameters:
@Nonnull final Ref ref
final boolean down
@Nonnull final Store store

ItemStack

public new ItemStack (next, item.getQuantity()

Method ItemStack.

Parameters:
next next
item.getQuantity( item.getQuantity(

getItemContainer

public ItemContainer getItemContainer ()

Method getItemContainer.

onOpen0

public boolean onOpen0 ()

Method onOpen0.

onClose0

public void onClose0 ()

Method onClose0.

updateRecipes

private void updateRecipes ()

Method updateRecipes.

getMatchingRecipes

private ObjectList getMatchingRecipes (@Nullable final ItemStack inputStack)

Method getMatchingRecipes.

Parameters:
@Nullable final ItemStack inputStack

handle

static MethodHandle handle ()

Method handle.

ensureHandle

static MethodHandle ensureHandle ()

Method ensureHandle.

invoke

static int invoke (Object p0, int p1)

Method invoke.

Parameters:
Object p0
int p1