Class MaskUtils

java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.MaskUtils

public class MaskUtils extends Object
The utility class for Mask
  • 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 position
      position2 - 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 position
      position2 - the second position
      size - 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 position
      position2 - 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 position
      position2 - the second position
      size - the size of the inventory
      Returns:
      the stream of slots