Package dev.twilite.game
Class Interfaces
java.lang.Object
dev.twilite.game.Interfaces
Static entry point for interface component queries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentViewcc(int id) Returns the dynamic children of a component by packed id.static Optional<IfComponent> cc(int id, int child) Returns a dynamic child of a component by packed id and child index.static Optional<IfComponent> component(int id) Returns a component by packed id.static ComponentViewDeprecated.static ComponentViewcomponents(int group) Returns a lazy view of interface components in a group.static inttopLevel()static booleanvisible(int id) Returns whether a component exists and is visible.
-
Constructor Details
-
Interfaces
public Interfaces()
-
-
Method Details
-
topLevel
public static int topLevel() -
components
Deprecated.Do not use this. -
components
Returns a lazy view of interface components in a group.- Parameters:
group- interface group id, usually fromInterfaceId
-
component
Returns a component by packed id.- Parameters:
id- packed interface component id fromInterfaceId
-
visible
public static boolean visible(int id) Returns whether a component exists and is visible.- Parameters:
id- packed interface component id fromInterfaceId
-
cc
Returns the dynamic children of a component by packed id.- Parameters:
id- packed interface component id fromInterfaceId
-
cc
Returns a dynamic child of a component by packed id and child index.- Parameters:
id- packed interface component id fromInterfaceId
-