Class Dexterity

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.c7dev.dexterity.Dexterity
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public class Dexterity extends org.bukkit.plugin.java.JavaPlugin
Plugin main class
  • Field Details

  • Constructor Details

    • Dexterity

      public Dexterity()
  • Method Details

    • onEnable

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

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

      public void loadConfigSettings()
    • reload

      public void reload()
    • api

      public DexterityAPI api()
    • getClickDataCache

      public ClickDataCache getClickDataCache()
    • getAPI

      public static DexterityAPI getAPI()
    • getChatColor

      public String getChatColor()
    • getChatColor2

      public String getChatColor2()
    • getChatColor3

      public String getChatColor3()
    • getMaxVolume

      public int getMaxVolume()
    • usingWorldEdit

      public boolean usingWorldEdit()
    • getWorldEdit

      public com.sk89q.worldedit.bukkit.WorldEditPlugin getWorldEdit()
    • getSelection

      public com.sk89q.worldedit.regions.Region getSelection(org.bukkit.entity.Player p)
    • isLegacy

      public boolean isLegacy()
    • spawn

      public <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location loc, Class<T> type, Consumer<T> c)
    • getDefaultWorld

      public org.bukkit.World getDefaultWorld()
    • setMappedDisplay

      @Deprecated public void setMappedDisplay(DexBlock b)
      Deprecated.
    • getMappedDisplay

      public DexBlock getMappedDisplay(UUID block)
    • getWandType

      public org.bukkit.Material getWandType()
    • clearMappedDisplay

      @Deprecated public void clearMappedDisplay(DexBlock block)
      Deprecated.
    • getConfigString

      public String getConfigString(String dir, String def)
    • getAuthor

      public String getAuthor()
    • getConfigString

      public String getConfigString(String dir)
    • reloadDisplays

      public void reloadDisplays()
      Reload the files in the saved displays folder
    • getDisplayFile

      public File getDisplayFile(String label)
    • saveDisplays

      public void saveDisplays()
    • saveDisplay

      public void saveDisplay(DexterityDisplay disp)
    • processUnloadedDisplaysInChunk

      public void processUnloadedDisplaysInChunk(org.bukkit.Chunk c)
      Searches for missing block displays once the chunk has been loaded by a player
      Parameters:
      c -
    • hasUnloadedDisplays

      public boolean hasUnloadedDisplays()
      Returns true if it is possible that there is a display that is not loaded due to the server requiring a player to load the chunk's entities
      Returns:
    • purgeUnloadedDisplays

      public int purgeUnloadedDisplays()
      Deletes unneeded display files that do not have any blocks loaded
      Returns:
      The number of files that were purged
    • registerDisplay

      public void registerDisplay(String label, DexterityDisplay d)
      Maps the label to the display. For API use, see DexterityDisplay.setLabel(String)
    • unregisterDisplay

      public void unregisterDisplay(DexterityDisplay d)
      Unmaps the label to the display. For API use, see DexterityDisplay.setLabel(String) for null label
    • unregisterDisplay

      public void unregisterDisplay(DexterityDisplay d, boolean fromMerge)
      Unmaps the label to the display. For API use, see DexterityDisplay.setLabel(String) for null label
    • getNextLabel

      public String getNextLabel(String s)
    • putBlock

      public org.bukkit.entity.BlockDisplay putBlock(ClickedBlockDisplay clicked, org.bukkit.block.data.BlockData placeData)
      Emulates how a block display can be placed on one of the faces of another block display, such as when a player clicks a block.
      Parameters:
      clicked -
      placeData -
      Returns:
    • getDisplayLabels

      public Set<String> getDisplayLabels()
    • getDisplayLabels

      public Set<String> getDisplayLabels(org.bukkit.entity.Player p)
    • getDisplays

      public Collection<DexterityDisplay> getDisplays()
    • getDisplay

      public DexterityDisplay getDisplay(String label)
    • editSessionIter

      public Set<Map.Entry<UUID,DexSession>> editSessionIter()
    • getEditSession

      public DexSession getEditSession(UUID u)
    • deleteEditSession

      public void deleteEditSession(UUID u)
    • setEditSession

      public void setEditSession(UUID u, DexSession s)