Package | Description |
---|---|
me.leoko.advancedgui.utils | |
me.leoko.advancedgui.utils.components |
Modifier and Type | Method and Description |
---|---|
Component |
ListItemBuilder.buildListItem(Interaction interaction,
int index,
T item)
Build list item component.
|
Component |
ListItemBuilder.buildListItem(Interaction interaction,
int index,
T item)
Build list item component.
|
Modifier and Type | Method and Description |
---|---|
void |
Layout.syncExchange(GroupComponent componentTree,
List<Component> defaultHidden)
Replace current GUI with a new version on runtime.
|
void |
Layout.syncExchange(GroupComponent componentTree,
List<Component> defaultHidden)
Replace current GUI with a new version on runtime.
|
Modifier and Type | Class and Description |
---|---|
class |
AdaptiveComponent
The AdaptiveComponent can display different components depending on the
Interaction |
class |
CheckComponent
The CheckComponent displays a certain component depending on the outcome of a check.
|
class |
ClickAnimationComponent
The ClickAnimationComponent displays a certain component depending on whether is was recently clicked.
|
class |
CustomComponent
When creating your own component by combining other existing components you can extend the CustomComponent
and set this.component to you constructed component in the constructor.
|
class |
DummyComponent
The DummyComponent is used by developers to define at which point they want to insert
their own components into Layouts created with the web editor.
|
class |
GifComponent
The GifComponent displays an GIF.
|
class |
GroupComponent
The GroupComponent displays several components.
|
class |
HoverComponent
The HoverComponent displays a certain component depending on whether the cursor is in-bounds.
|
class |
HoverDetectorComponent
The HoverDetectorComponent executes an
Action when a player starts or stops hovering its child component. |
class |
ImageComponent
The ImageComponent displays an image.
|
class |
ListComponent<T>
The ListComponent holds a list of items and renders a list of components for that item list.
|
class |
PlaceholderTextComponent
The PlaceholderTextComponent is a
TextComponent that parses placeholders from the PlaceholderAPI. |
class |
RectangularComponent
The RectangularComponent is an abstract Component implementing basic functionality for Components that
are rectangular.
|
class |
RectComponent
The RectComponent displays a colored rectangle.
|
class |
RemoteImageComponent
The RemoteImageComponent loads an image from an URL for each interaction.
|
class |
TextComponent
The TextComponent displays text :)
|
class |
TextInputComponent
The type Text input component.
|
class |
ViewComponent
The ViewComponent provides an easy way to display different components to different interactions.
|
Modifier and Type | Field and Description |
---|---|
protected Component |
AdaptiveComponent.component
The component used when no adaption is present
|
protected Component |
CustomComponent.component
The Component.
|
protected Component |
CustomComponent.component
The Component.
|
protected Component |
AdaptiveComponent.component
The component used when no adaption is present
|
Modifier and Type | Method and Description |
---|---|
<T extends Component> |
Component.locate(String componentId,
Class<T> type)
Locate the component with the given id and type.
|
<T extends Component> |
Component.locate(String componentId,
Class<T> type)
Locate the component with the given id and type.
|
Modifier and Type | Method and Description |
---|---|
abstract Component |
Component.clone(Interaction interaction)
Clone the component with the new interaction.
|
Component |
CustomComponent.clone(Interaction interaction) |
Component |
CustomComponent.clone(Interaction interaction) |
abstract Component |
Component.clone(Interaction interaction)
Clone the component with the new interaction.
|
Component |
HoverDetectorComponent.getChild()
Gets child component.
|
Component |
HoverDetectorComponent.getChild()
Gets child component.
|
Component |
ClickAnimationComponent.getClicked()
Gets clicked.
|
Component |
ClickAnimationComponent.getClicked()
Gets clicked.
|
Component |
DummyComponent.getComponent()
Gets the component that the dummy component acts as
|
Component |
DummyComponent.getComponent()
Gets the component that the dummy component acts as
|
Component |
HoverComponent.getHovered()
Gets the hovered component.
|
Component |
HoverComponent.getHovered()
Gets the hovered component.
|
Component |
ClickAnimationComponent.getNormal()
Gets the normal component.
|
Component |
HoverComponent.getNormal()
Gets the normal component.
|
Component |
HoverComponent.getNormal()
Gets the normal component.
|
Component |
ClickAnimationComponent.getNormal()
Gets the normal component.
|
Component |
CheckComponent.locate(String componentId) |
Component |
ClickAnimationComponent.locate(String componentId) |
Component |
Component.locate(String componentId)
Locate the component with the given id.
|
Component |
DummyComponent.locate(String componentId) |
Component |
GroupComponent.locate(String componentId) |
Component |
HoverComponent.locate(String componentId) |
Component |
ViewComponent.locate(String componentId) |
Component |
ViewComponent.locate(String componentId) |
Component |
HoverComponent.locate(String componentId) |
Component |
GroupComponent.locate(String componentId) |
Component |
DummyComponent.locate(String componentId) |
Component |
Component.locate(String componentId)
Locate the component with the given id.
|
Component |
ClickAnimationComponent.locate(String componentId) |
Component |
CheckComponent.locate(String componentId) |
Component |
Component.locateOn(Interaction interaction)
Locate the same component on a different interaction.
|
Component |
Component.locateOn(Interaction interaction)
Locate the same component on a different interaction.
|
Modifier and Type | Method and Description |
---|---|
List<Component> |
GroupComponent.getComponents()
Gets all components in a mutable list.
|
List<Component> |
GroupComponent.getComponents()
Gets all components in a mutable list.
|
Modifier and Type | Method and Description |
---|---|
void |
AdaptiveComponent.adapt(Component adaption)
Change which component will be displayed for an interaction.
|
void |
AdaptiveComponent.adapt(Component adaption)
Change which component will be displayed for an interaction.
|
void |
HoverDetectorComponent.setChild(Component child)
Sets child component.
|
void |
HoverDetectorComponent.setChild(Component child)
Sets child component.
|
void |
ClickAnimationComponent.setClicked(Component clicked)
Sets clicked.
|
void |
ClickAnimationComponent.setClicked(Component clicked)
Sets clicked.
|
void |
DummyComponent.setComponent(Component component)
Sets this dummy component to act as the provided component.
|
void |
DummyComponent.setComponent(Component component)
Sets this dummy component to act as the provided component.
|
void |
HoverComponent.setHovered(Component hovered)
Sets the hovered component.
|
void |
HoverComponent.setHovered(Component hovered)
Sets the hovered component.
|
void |
ClickAnimationComponent.setNormal(Component normal)
Sets the normal component.
|
void |
HoverComponent.setNormal(Component normal)
Sets the normal component.
|
void |
HoverComponent.setNormal(Component normal)
Sets the normal component.
|
void |
ClickAnimationComponent.setNormal(Component normal)
Sets the normal component.
|
Constructor and Description |
---|
AdaptiveComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component defaultComponent)
Instantiates a new AdaptiveComponent.
|
AdaptiveComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component defaultComponent)
Instantiates a new AdaptiveComponent.
|
CheckComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Check check,
Component positive,
Component negative)
Instantiates a new CheckComponent.
|
CheckComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Check check,
Component positive,
Component negative)
Instantiates a new CheckComponent.
|
ClickAnimationComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component clicked)
Instantiates a new ClickAnimationComponent.
|
ClickAnimationComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component clicked)
Instantiates a new ClickAnimationComponent.
|
ClickAnimationComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component clicked)
Instantiates a new ClickAnimationComponent.
|
ClickAnimationComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component clicked)
Instantiates a new ClickAnimationComponent.
|
HoverComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component hovered)
Instantiates a new HoverComponent.
|
HoverComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component hovered)
Instantiates a new HoverComponent.
|
HoverComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component hovered)
Instantiates a new HoverComponent.
|
HoverComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component hovered)
Instantiates a new HoverComponent.
|
HoverDetectorComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Action onHoverEnter,
Action onHoverExit,
Component child)
Instantiates a new HoverDetectorComponent
|
HoverDetectorComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Action onHoverEnter,
Action onHoverExit,
Component child)
Instantiates a new HoverDetectorComponent
|
RemoteImageComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
String imageUrl,
Component loading,
int x,
int y,
int width,
int height,
boolean dithering)
Instantiates a new Remote image component.
|
RemoteImageComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
String imageUrl,
Component loading,
int x,
int y,
int width,
int height,
boolean dithering)
Instantiates a new Remote image component.
|
ViewComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Component defaultComponent,
List<Component> views)
Instantiates a new ViewComponent.
|
ViewComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Component defaultComponent,
List<Component> views)
Instantiates a new ViewComponent.
|
Constructor and Description |
---|
GroupComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
List<Component> components)
Instantiates a new GroupComponent.
|
GroupComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
List<Component> components)
Instantiates a new GroupComponent.
|
ViewComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Component defaultComponent,
List<Component> views)
Instantiates a new ViewComponent.
|
ViewComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Component defaultComponent,
List<Component> views)
Instantiates a new ViewComponent.
|
Copyright © 2021. All rights reserved.