Package space.maxus.flare.ui.frames
Class SimpleFrame
java.lang.Object
space.maxus.flare.ui.Frame
space.maxus.flare.ui.frames.SimpleFrame
- All Implemented Interfaces:
ReactivityProvider
A simple implementation of
Frame-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NotNull Dimensionsprotected @NotNull ReactiveInventoryHolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NotNull DimensionsGets the dimensions of this frame's inventory@NotNull ReactiveInventoryHolderGets the Flare InventoryHolder for this frameinthashCode()abstract voidinit()Called once inside the constructor@NotNull org.bukkit.inventory.InventoryGets the inventory of this frame.voidsetHolder(@NotNull ReactiveInventoryHolder holder) Sets the holder for this frame This is an internal method, it is only used for frame-switchingMethods inherited from class space.maxus.flare.ui.Frame
bindViewer, close, composableMap, compose, compose, composeAll, context, contextOrNull, drag, fireDrag, fireGenericClick, fireLeftClick, fireRightClick, fireShiftClick, fireShiftRequest, genericClick, getTitle, getViewer, goBack, leftClick, markDirty, markDirty, markDirty, onClose, onOpen, open, refreshTitle, render, renderPart, restorePreviousState, rightClick, setTitle, shiftClick, shiftRequest, switchFrame, useBoundState, useContext, useStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface space.maxus.flare.react.ReactivityProvider
useMemo, useUnboundState
-
Field Details
-
dimensions
-
holder
-
-
Constructor Details
-
SimpleFrame
protected SimpleFrame() -
SimpleFrame
-
-
Method Details
-
init
public abstract void init()Description copied from class:FrameCalled once inside the constructor -
selfInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory selfInventory()Description copied from class:FrameGets the inventory of this frame.- Specified by:
selfInventoryin classFrame- Returns:
- the inventory of this frame.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getDimensions
Description copied from class:FrameGets the dimensions of this frame's inventory- Specified by:
getDimensionsin classFrame- Returns:
- the dimensions of this frame's inventory
-
getHolder
Description copied from class:FrameGets the Flare InventoryHolder for this frame -
setHolder
Description copied from class:FrameSets the holder for this frame This is an internal method, it is only used for frame-switching
-