Class ExtensionTab
-
- All Implemented Interfaces:
-
java.awt.MenuContainer,java.awt.image.ImageObserver,java.io.Serializable,javax.accessibility.Accessible,javax.swing.TransferHandler.HasGetTransferHandler
public abstract class ExtensionTab extends JPanel
Class to extend from if you want to add your own tabs to the ServerPackCreator GUI.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ExtensionTab(VersionMeta versionMeta, ApiProperties apiProperties, Utilities utilities, Optional<CommentedConfig> pluginConfig, Optional<File> configFile)
-
Method Summary
Modifier and Type Method Description final VersionMetagetVersionMeta()final ApiPropertiesgetApiProperties()final UtilitiesgetUtilities()final Optional<CommentedConfig>getPluginConfig()final Optional<File>getConfigFile()final LoggergetLog()final UnitsaveConfiguration()Save the current configuration of this plugin to the overlying plugins config-file. -
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, adjustListeningChildrenOnParent, applyComponentOrientation, applyCompoundShape, applyCurrentShape, areBoundsValid, areFocusTraversalKeysSet, areInputMethodsEnabled, autoProcessMouseWheel, bounds, canBeFocusOwner, canBeFocusOwnerRecursively, checkGD, checkImage, checkImage, checkTreeLock, clearCurrentFocusCycleRootOnHide, clearMostRecentFocusOwnerOnHide, coalesceEvents, constructComponentName, contains, contains, containsFocus, countHierarchyMembers, createBufferStrategy, createBufferStrategy, createHierarchyEvents, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, dispatchMouseWheelToAncestor, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, eventTypeEnabled, findUnderMouseInWindow, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessControlContext, getAccessibleIndexInParent, getAccessibleStateSet, getBackBuffer, getBackground, getBaseline, getBounds, getBounds, getBoundsOp, getBufferStrategy, getColorModel, getComponentAt, getComponentAt, getComponentFactory, getComponentListeners, getComponentOrientation, getContainer, getContainingWindow, getCursor, getCursor_NoClientCode, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFocusTraversalKeys_NoIDCheck, getFont, getFontMetrics, getFont_NoClientCode, getForeground, getGraphicsConfiguration, getGraphicsConfiguration_NoClientCode, getGraphics_NoClientCode, getHWPeerAboveMe, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getLocationOnScreen_NoTreeLock, getLocationOnWindow, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getNativeContainer, getNextFocusCandidate, getNormalShape, getObjectLock, getParent, getParent_NoClientCode, getPropertyChangeListeners, getSiblingIndexAbove, getSiblingIndexBelow, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, gotFocus, handleEvent, hasFocus, hide, initializeFocusTraversalKeys, inside, invalidate, invalidateIfValid, invalidateParent, isAutoFocusTransferOnDisposal, isBackgroundSet, isCoalescingEnabled, isCursorSet, isDisplayable, isEnabled, isEnabledImpl, isFocusOwner, isFocusTraversable, isFocusTraversableOverridden, isFocusable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isMixingNeeded, isNonOpaqueForMixing, isPreferredSizeSet, isRecursivelyVisible, isSameOrAncestorOf, isShowing, isValid, isVisible, isVisible_NoClientCode, keyDown, keyUp, layout, lightweightPaint, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mixOnHiding, mixOnReshaping, mixOnShowing, mixOnValidating, mixOnZOrderChanging, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, numListening, paint, paintAll, paintHeavyweightComponents, paramString, pointRelativeToComponent, postsOldMouseEvents, preferredSize, prepareImage, prepareImage, print, printAll, printHeavyweightComponents, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, relocateComponent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusHelper, requestFocusHelper, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, revalidateSynchronously, setAutoFocusTransferOnDisposal, setBounds, setBoundsOp, setComponentOrientation, setCursor, setDropTarget, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFocusTraversalKeys_NoIDCheck, setFocusable, setGraphicsConfiguration, setIgnoreRepaint, setLocale, setLocation, setMixingCutoutShape, setName, setSize, show, show, size, subtractAndApplyShape, subtractAndApplyShapeBelowMe, transferFocus, transferFocus, transferFocusBackward, transferFocusBackward, transferFocusUpCycle, update, updateChildGraphicsData, updateCursorImmediately, updateGraphicsData, updateZOrder, validate -
Methods inherited from class javax.swing.JComponent
_paintImmediately, addAncestorListener, addVetoableChangeListener, alwaysOnTop, checkIfChildObscuredBySibling, clientPropertyChanged, compWriteObjectNotify, componentInputMapChanged, computeVisibleRect, createToolTip, dndDone, dropLocationForPoint, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaselineResizeBehavior, getBorder, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getCreatedDoubleBuffer, getDebugGraphicsOptions, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputVerifier, getInsets, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPainting, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintForceDoubleBuffered, paintImmediately, paintImmediately, paintToOffscreen, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyBindings, putClientProperty, rectangleIsObscured, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, requestDefaultFocus, resetKeyboardActions, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setCreatedDoubleBuffer, setDebugGraphicsOptions, setDoubleBuffered, setDropLocation, setEnabled, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPaintingChild, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setUIProperty, setVerifyInputWhenFocusTarget, setVisible, shouldDebugGraphics, superProcessMouseMotionEvent, unregisterKeyboardAction, updateUI -
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, adjustDescendants, adjustDescendantsOnParent, adjustListeningChildren, canContainFocusOwner, countComponents, createChildHierarchyEvents, decreaseComponentCount, dispatchEventToSelf, findComponentAt, findComponentAt, findComponentAt, findComponentAtImpl, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getComponent, getComponentCount, getComponentZOrder, getComponents, getComponentsSync, getComponents_NoClientCode, getContainerListeners, getDropTargetEventTarget, getFocusTraversalPolicy, getHeavyweightContainer, getLayout, getMouseEventTarget, getMousePosition, getOpaqueShape, getTraversalRoot, hasHeavyweightDescendants, hasLightweightDescendants, increaseComponentCount, insets, invalidateTree, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isRecursivelyVisibleUpToHeavyweightContainer, paintComponents, postProcessKeyEvent, preProcessKeyEvent, printComponents, processContainerEvent, proxyEnableEvents, recursiveApplyCurrentShape, recursiveApplyCurrentShape, recursiveApplyCurrentShape, recursiveSubtractAndApplyShape, recursiveSubtractAndApplyShape, recursiveSubtractAndApplyShape, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateTree, validateUnconditionally -
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI -
Methods inherited from class java.awt.MenuContainer
postEvent, remove -
Methods inherited from class java.awt.image.ImageObserver
imageUpdate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ExtensionTab
ExtensionTab(VersionMeta versionMeta, ApiProperties apiProperties, Utilities utilities, Optional<CommentedConfig> pluginConfig, Optional<File> configFile)
- Parameters:
versionMeta- Instance of VersionMeta so you can work with available Minecraft, Forge, Fabric, LegacyFabric and Quilt versions.apiProperties- Instance of ApiProperties The current configuration of ServerPackCreator, like the default list of clientside-only mods, the server pack directory etc.utilities- Instance of Utilities commonly used across ServerPackCreator.pluginConfig- Plugin specific configuration conveniently provided by ServerPackCreator.configFile- The config-file corresponding to the ID of the plugin, wrapped in an Optional.
-
-
Method Detail
-
getVersionMeta
final VersionMeta getVersionMeta()
-
getApiProperties
final ApiProperties getApiProperties()
-
getUtilities
final Utilities getUtilities()
-
getPluginConfig
final Optional<CommentedConfig> getPluginConfig()
-
getConfigFile
final Optional<File> getConfigFile()
-
getLog
final Logger getLog()
-
saveConfiguration
final Unit saveConfiguration()
Save the current configuration of this plugin to the overlying plugins config-file. Requires your plugin to register a global configuration-file. If your plugin does not provide a configuration-file, this method will not store or save anything. No file will be created. Your plugin MUST provide the initial configuration-file.
-
-
-
-