Class CustomStructures

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.ryandw11.structure.CustomStructures
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public class CustomStructures extends org.bukkit.plugin.java.JavaPlugin
The main class for the Custom Structures plugin.

Use getInstance() to get the instance of the main class.

Version:
1.9.0
Author:
Ryandw11
  • Field Details

    • plugin

      public static CustomStructures plugin
      The instance of the CustomStructures plugin.

      Use getInstance() instead.

    • enabled

      public static boolean enabled
      Whether the plugin is enabled.
    • COMPILED_STRUCT_VER

      public static final int COMPILED_STRUCT_VER
      The current version of the compiled structure format.
      See Also:
      Constant Field Values
    • CONFIG_VERSION

      public static final int CONFIG_VERSION
      The current version of the structure configuration format.
      See Also:
      Constant Field Values
  • Constructor Details

    • CustomStructures

      public CustomStructures()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • initialize

      public void initialize()
      Initializes the plugin by creating the StructureHandler.

      This is called internally after all plugins are initialized.

    • replacePAPIPlaceholders

      public static String replacePAPIPlaceholders(String text)
      Resolves PAPI placeholders.
      Parameters:
      text - The text which may contain placeholders.
      Returns:
      The final text.
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getBlockIgnoreManager

      public IgnoreBlocks getBlockIgnoreManager()
      Get the blocks the plugin should ignore for the server's minecraft version.
      Returns:
      The proper block ignore list.
    • getStructureHandler

      public StructureHandler getStructureHandler()
      Get the structure handler for the plugin.

      This will be null until after all plugins have been enabled.

      Returns:
      The structure handler.
    • getLootTableHandler

      public LootTableHandler getLootTableHandler()
      Get the loot table handler.
      Returns:
      The loot table handler.
    • reloadHandlers

      public void reloadHandlers()
      Reload the handlers.

      This is for internal use only.

    • getInstance

      public static CustomStructures getInstance()
      Get the instance of the main class.
      Returns:
      The main class.
    • loadFiles

      public void loadFiles()
      Loaded needed files.
    • isDebug

      public boolean isDebug()
      If the plugin is in debug mode.
      Returns:
      If the plugin is in debug mode.
    • getCustomItemManager

      public CustomItemManager getCustomItemManager()
      Get the custom item manager.
      Returns:
      The custom item manager.
    • getSignCommandsHandler

      public SignCommandsHandler getSignCommandsHandler()
      Returns:
      The commands config handler
    • getNpcHandler

      public NpcHandler getNpcHandler()
      Returns:
      The NPC config handler
    • getAddonHandler

      public AddonHandler getAddonHandler()
      Get the addon handler for the plugin.
      Returns:
      The addon handler.
    • getStructureSignHandler

      public StructureSignHandler getStructureSignHandler()
      Get the handler for registering custom structure signs.
      Returns:
      The handler for registering custom structure signs.
    • getMythicalMobHook

      public MythicalMobHook getMythicalMobHook()
      Get the hook for mythical mobs.
      Returns:
      The hook for mythical mobs.
    • getCitizensNpcHook

      public CitizensNpcHook getCitizensNpcHook()
      Get the hook for citizens.
      Returns:
      The hook for citizens.