Class LocationsComponent

java.lang.Object
com.zachsthings.libcomponents.AbstractComponent
com.zachsthings.libcomponents.bukkit.BukkitComponent
com.sk89q.commandbook.component.locations.LocationsComponent
All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Direct Known Subclasses:
HomesComponent, WarpsComponent

public abstract class LocationsComponent
extends com.zachsthings.libcomponents.bukkit.BukkitComponent
Parent class for components that use a RootLocationManager <NamedLocation> and deal with locations
  • Field Summary

    Fields inherited from class com.zachsthings.libcomponents.bukkit.BukkitComponent

    commands
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected LocationsComponent​(java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    void enable()  
    abstract PaginatedResult<NamedLocation> getListResult()  
    RootLocationManager<NamedLocation> getManager()  
    void info​(java.lang.String name, org.bukkit.World world, org.bukkit.command.CommandSender sender)  
    void list​(com.sk89q.minecraft.util.commands.CommandContext args, org.bukkit.command.CommandSender sender)  
    void remove​(java.lang.String name, org.bukkit.World world, org.bukkit.command.CommandSender sender)  

    Methods inherited from class com.zachsthings.libcomponents.bukkit.BukkitComponent

    disable, getCommands, onCommand, registerCommands, setUp, unregisterCommands

    Methods inherited from class com.zachsthings.libcomponents.AbstractComponent

    configure, getComponentLoader, getInformation, getRawConfiguration, isEnabled, reload, saveConfig, saveConfig, setUp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • enable

      public void enable()
      Specified by:
      enable in class com.zachsthings.libcomponents.AbstractComponent
    • getManager

      public RootLocationManager<NamedLocation> getManager()
    • info

      public void info​(java.lang.String name, org.bukkit.World world, org.bukkit.command.CommandSender sender) throws com.sk89q.minecraft.util.commands.CommandException
      Throws:
      com.sk89q.minecraft.util.commands.CommandException
    • remove

      public void remove​(java.lang.String name, org.bukkit.World world, org.bukkit.command.CommandSender sender) throws com.sk89q.minecraft.util.commands.CommandException
      Throws:
      com.sk89q.minecraft.util.commands.CommandException
    • list

      public void list​(com.sk89q.minecraft.util.commands.CommandContext args, org.bukkit.command.CommandSender sender) throws com.sk89q.minecraft.util.commands.CommandException
      Throws:
      com.sk89q.minecraft.util.commands.CommandException
    • getListResult

      public abstract PaginatedResult<NamedLocation> getListResult()