Class ChestProtectAddon
java.lang.Object
me.angeschossen.chestprotect.api.addons.ChestProtectAddon
- All Implemented Interfaces:
ChestProtectAddons
Deprecated.
Use
ChestProtectAPI instead.-
Constructor Summary
ConstructorsConstructorDescriptionChestProtectAddon(@NotNull org.bukkit.plugin.Plugin plugin) Deprecated.ChestProtectAddon(org.bukkit.plugin.Plugin plugin, boolean isPublic) Deprecated.useChestProtectAPIinstead -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanDeprecated.booleanDeprecated.@NotNull StringgetName()Deprecated.Get the name of the plugin.org.bukkit.plugin.PluginDeprecated.Get's plugin wich hooks ChestProtect.getProtection(org.bukkit.Location location) Deprecated.Get protection.getProtectionChunk(@NotNull org.bukkit.World world, int x, int z) Deprecated.Get chunk related protection data.getProtectionWorld(@NotNull org.bukkit.World world) Deprecated.Get world related protection data.getProtectPlayer(UUID playerUUID) Deprecated.Get cached landPlayerinthashCode()Deprecated.Deprecated.booleanDeprecated.booleanisProtectable(org.bukkit.block.Block block) Deprecated.Check if the given block can be protected.booleanisPublic()Deprecated.
-
Constructor Details
-
ChestProtectAddon
Deprecated.useChestProtectAPIinsteadCreate a new addon instance.- Parameters:
plugin- the plugin using this addonisPublic- unused, kept for backwards compatibility
-
ChestProtectAddon
Deprecated.useChestProtectAPIinsteadCreate a new addon instance.- Parameters:
plugin- the plugin using this addon
-
-
Method Details
-
getName
Deprecated.Description copied from interface:ChestProtectAddonsGet the name of the plugin.- Specified by:
getNamein interfaceChestProtectAddons- Returns:
- plugin name
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated. -
getProtectPlayer
Deprecated.Description copied from interface:ChestProtectAddonsGet cached landPlayer- Specified by:
getProtectPlayerin interfaceChestProtectAddons- Parameters:
playerUUID- UUID string of player- Returns:
- LandPlayer or null, if not cached
-
getProtectionWorld
Deprecated.Description copied from interface:ChestProtectAddonsGet world related protection data.- Specified by:
getProtectionWorldin interfaceChestProtectAddons- Parameters:
world- the Bukkit world- Returns:
- world data, or null if protections aren't enabled in that world
-
getProtectionChunk
Deprecated.Description copied from interface:ChestProtectAddonsGet chunk related protection data.- Specified by:
getProtectionChunkin interfaceChestProtectAddons- Parameters:
world- the Bukkit worldx- chunk X coordinatez- chunk Z coordinate- Returns:
- chunk data, or null if not loaded
-
getProtection
Deprecated.Description copied from interface:ChestProtectAddonsGet protection.- Specified by:
getProtectionin interfaceChestProtectAddons- Parameters:
location- Location of protection- Returns:
- BlockProtection or null, if not loaded
-
isProtectable
public boolean isProtectable(org.bukkit.block.Block block) Deprecated.Description copied from interface:ChestProtectAddonsCheck if the given block can be protected.- Specified by:
isProtectablein interfaceChestProtectAddons- Parameters:
block- the block to check- Returns:
- true, if the block type is protectable
-
getPlugin
public org.bukkit.plugin.Plugin getPlugin()Deprecated.Description copied from interface:ChestProtectAddonsGet's plugin wich hooks ChestProtect.- Specified by:
getPluginin interfaceChestProtectAddons- Returns:
- Plugin
-
disable
Deprecated.Description copied from interface:ChestProtectAddonsDisables the APIHook.- Specified by:
disablein interfaceChestProtectAddons- Parameters:
hookKey- key of the hook to disable
-
initialize
Deprecated.Description copied from interface:ChestProtectAddonsNot any longer needed.- Specified by:
initializein interfaceChestProtectAddons- Returns:
- empty string
-
isEnabled
Deprecated.Description copied from interface:ChestProtectAddonsCheck if hook is enabled.- Specified by:
isEnabledin interfaceChestProtectAddons- Returns:
- Status
-
getAccess
Deprecated.Description copied from interface:ChestProtectAddonsChecks if you can access the hook with your key.- Specified by:
getAccessin interfaceChestProtectAddons- Parameters:
hookKey- Key of hook- Returns:
- Access status
-
isPublic
Deprecated.Description copied from interface:ChestProtectAddonsIf public is true, other developers can access your LandsAPIHook.- Specified by:
isPublicin interfaceChestProtectAddons- Returns:
- true, if the hook is public
-
ChestProtectAPIinstead