PluginHelper
public class PluginHelperImpl extends java.lang.Object implements PluginHelper
Modifier and Type | Field | Description |
---|---|---|
PluginContainerImpl |
container |
Constructor | Description |
---|---|
PluginHelperImpl(PluginContainerImpl container) |
Modifier and Type | Method | Description |
---|---|---|
PluginContainerImpl |
getContainer() |
|
java.util.Optional<byte[]> |
getResourceBytes(java.lang.String filePath) |
|
java.util.Optional<java.awt.image.BufferedImage> |
getResourceImage(java.lang.String filePath) |
|
java.io.OutputStream |
getResourceOutputStream(java.lang.String filePath) |
|
java.util.Optional<java.io.InputStream> |
getResourceStream(java.lang.String filePath) |
|
void |
registerEventClass(java.lang.Object classInstance) |
|
void |
registerOverlay(Overlay overlay) |
|
void |
registerSettingsSection(SettingsSection settingsSection) |
public PluginContainerImpl container
public PluginHelperImpl(PluginContainerImpl container)
public PluginContainerImpl getContainer()
getContainer
in interface PluginHelper
public java.util.Optional<java.io.InputStream> getResourceStream(java.lang.String filePath) throws java.io.IOException
getResourceStream
in interface PluginHelper
java.io.IOException
public java.util.Optional<byte[]> getResourceBytes(java.lang.String filePath) throws java.io.IOException
getResourceBytes
in interface PluginHelper
java.io.IOException
public java.util.Optional<java.awt.image.BufferedImage> getResourceImage(java.lang.String filePath) throws java.io.IOException
getResourceImage
in interface PluginHelper
java.io.IOException
public java.io.OutputStream getResourceOutputStream(java.lang.String filePath) throws java.io.IOException
getResourceOutputStream
in interface PluginHelper
java.io.IOException
public void registerEventClass(java.lang.Object classInstance)
registerEventClass
in interface PluginHelper
public void registerOverlay(Overlay overlay)
registerOverlay
in interface PluginHelper
public void registerSettingsSection(SettingsSection settingsSection)
registerSettingsSection
in interface PluginHelper