Class MaskUtils
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.MaskUtils
The utility class for
Mask
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Stream<InventoryPosition>
generateAreaPositions
(@NotNull InventoryPosition position1, @NotNull InventoryPosition position2) Generate the stream of positions in the area between two positionsstatic @NotNull IntStream
generateAreaSlots
(@NotNull InventoryPosition position1, @NotNull InventoryPosition position2, @NotNull InventorySize size) Generate the stream of slots in the area between two positionsstatic @NotNull Stream<InventoryPosition>
generateOutlineSlots
(@NotNull InventoryPosition position1, @NotNull InventoryPosition position2) Get the stream of positions drawing the outline of the area between 2 positionsstatic @NotNull IntStream
generateOutlineSlots
(@NotNull InventoryPosition position1, @NotNull InventoryPosition position2, @NotNull InventorySize size) Get the stream of slots drawing the outline of the area between 2 positions
-
Method Details
-
generateAreaPositions
@NotNull public static @NotNull Stream<InventoryPosition> generateAreaPositions(@NotNull @NotNull InventoryPosition position1, @NotNull @NotNull InventoryPosition position2) Generate the stream of positions in the area between two positions- Parameters:
position1
- the first positionposition2
- the second position- Returns:
- the stream of positions
-
generateAreaSlots
@NotNull public static @NotNull IntStream generateAreaSlots(@NotNull @NotNull InventoryPosition position1, @NotNull @NotNull InventoryPosition position2, @NotNull @NotNull InventorySize size) Generate the stream of slots in the area between two positions- Parameters:
position1
- the first positionposition2
- the second positionsize
- the size of the inventory- Returns:
- the stream of slots
-
generateOutlineSlots
@NotNull public static @NotNull Stream<InventoryPosition> generateOutlineSlots(@NotNull @NotNull InventoryPosition position1, @NotNull @NotNull InventoryPosition position2) Get the stream of positions drawing the outline of the area between 2 positions- Parameters:
position1
- the first positionposition2
- the second position- Returns:
- the stream of positions
-
generateOutlineSlots
@NotNull public static @NotNull IntStream generateOutlineSlots(@NotNull @NotNull InventoryPosition position1, @NotNull @NotNull InventoryPosition position2, @NotNull @NotNull InventorySize size) Get the stream of slots drawing the outline of the area between 2 positions- Parameters:
position1
- the first positionposition2
- the second positionsize
- the size of the inventory- Returns:
- the stream of slots
-