Package me.c7dev.dexterity
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapi()voidclearMappedDisplay(DexBlock block) Deprecated.voidstatic DexterityAPIgetAPI()getConfigString(String dir) getConfigString(String dir, String def) org.bukkit.WorldgetDisplay(String label) getDisplayFile(String label) getDisplayLabels(org.bukkit.entity.Player p) getMappedDisplay(UUID block) intcom.sk89q.worldedit.regions.RegiongetSelection(org.bukkit.entity.Player p) org.bukkit.Materialcom.sk89q.worldedit.bukkit.WorldEditPluginbooleanReturns 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 entitiesbooleanisLegacy()voidvoidvoidonEnable()voidprocessUnloadedDisplaysInChunk(org.bukkit.Chunk c) Searches for missing block displays once the chunk has been loaded by a playerintDeletes unneeded display files that do not have any blocks loadedorg.bukkit.entity.BlockDisplayputBlock(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.voidregisterDisplay(String label, DexterityDisplay d) Maps the label to the display.voidreload()voidReload the files in the saved displays foldervoidsaveDisplay(DexterityDisplay disp) voidvoidsetEditSession(UUID u, DexSession s) voidDeprecated.<T extends org.bukkit.entity.Entity>
TvoidUnmaps the label to the display.voidunregisterDisplay(DexterityDisplay d, boolean fromMerge) Unmaps the label to the display.booleanMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Field Details
-
defaultLangName
- See Also:
-
-
Constructor Details
-
Dexterity
public Dexterity()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
loadConfigSettings
public void loadConfigSettings() -
reload
public void reload() -
api
-
getClickDataCache
-
getAPI
-
getChatColor
-
getChatColor2
-
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
-
getDefaultWorld
public org.bukkit.World getDefaultWorld() -
setMappedDisplay
Deprecated. -
getMappedDisplay
-
getWandType
public org.bukkit.Material getWandType() -
clearMappedDisplay
Deprecated. -
getConfigString
-
getAuthor
-
getConfigString
-
reloadDisplays
public void reloadDisplays()Reload the files in the saved displays folder -
getDisplayFile
-
saveDisplays
public void saveDisplays() -
saveDisplay
-
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
Maps the label to the display. For API use, seeDexterityDisplay.setLabel(String) -
unregisterDisplay
Unmaps the label to the display. For API use, seeDexterityDisplay.setLabel(String)for null label -
unregisterDisplay
Unmaps the label to the display. For API use, seeDexterityDisplay.setLabel(String)for null label -
getNextLabel
-
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
-
getDisplayLabels
-
getDisplays
-
getDisplay
-
editSessionIter
-
getEditSession
-
deleteEditSession
-
setEditSession
-