Class IngredientList
java.lang.Object
java.util.AbstractCollection<xyz.xenondevs.invui.gui.structure.Ingredient>
java.util.AbstractList<xyz.xenondevs.invui.gui.structure.Ingredient>
java.util.ArrayList<xyz.xenondevs.invui.gui.structure.Ingredient>
xyz.xenondevs.invui.gui.structure.IngredientList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<xyz.xenondevs.invui.gui.structure.Ingredient>,Collection<xyz.xenondevs.invui.gui.structure.Ingredient>,List<xyz.xenondevs.invui.gui.structure.Ingredient>,RandomAccess,SequencedCollection<xyz.xenondevs.invui.gui.structure.Ingredient>
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionIngredientList(int width, int height, String structure, HashMap<Character, xyz.xenondevs.invui.gui.structure.Ingredient> ingredientMap) Creates a newIngredientList. -
Method Summary
Modifier and TypeMethodDescriptionint[]Finds all indices of theMarkers.CONTENT_LIST_SLOT_HORIZONTALandMarkers.CONTENT_LIST_SLOT_VERTICALMarkers.int[]findIndicesOfMarker(Marker marker) Finds all indices of the specifiedMarker.voidinsertIntoGui(Gui gui) Inserts theIngredientsinto the specifiedGui.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
IngredientList
public IngredientList(int width, int height, String structure, HashMap<Character, xyz.xenondevs.invui.gui.structure.Ingredient> ingredientMap) Creates a newIngredientList.- Parameters:
width- The width of the structure.height- The height of the structure.structure- The structure string.ingredientMap- TheHashMapcontaining theIngredients.
-
-
Method Details
-
insertIntoGui
Inserts theIngredientsinto the specifiedGui.- Parameters:
gui- TheGui.
-
findIndicesOfMarker
Finds all indices of the specifiedMarker.- Parameters:
marker- TheMarker.- Returns:
- The indices.
-
findContentListSlots
public int[] findContentListSlots()Finds all indices of theMarkers.CONTENT_LIST_SLOT_HORIZONTALandMarkers.CONTENT_LIST_SLOT_VERTICALMarkers.- Returns:
- The indices.
-