Skip to content

ILoomScreen ​

com.jsmacrosce.jsmacros.client.access.ILoomScreen

Mixin-backed access to a loom screen's stored pattern-list display state, used by loom pattern selection.
This is an access interface, not a global library or a type to construct directly.

js
if (Player.getPlayer()) {
  const inv = Player.openInventory();  
  const screen = inv.getRawContainer();  
  if (screen) {
    if (typeof screen.jsmacros_canApplyDyePattern === "function") {
      Chat.log(screen.jsmacros_canApplyDyePattern());  
    }
  }
}

Methods ​

jsmacros_canApplyDyePattern ​

jsmacros_canApplyDyePattern(): boolean#
Reports whether the loom screen's pattern list is displayed.
Returns: true when the pattern list is displayed; false otherwise