MCPcopy Create free account
hub / github.com/boxbeam/RedLib / SelectionTool

Method SelectionTool

src/redempt/redlib/region/SelectionTool.java:39–47  ·  view source on GitHub ↗

Create a SelectionTool with the given item @param item The item to use

(ItemStack item)

Source from the content-addressed store, hash-verified

37 * @param item The item to use
38 */
39 public SelectionTool(ItemStack item) {
40 this.item = item;
41 Bukkit.getPluginManager().registerEvents(this, RedLib.getInstance());
42 try {
43 plugin = JavaPlugin.getProvidingPlugin(Class.forName(new Exception().getStackTrace()[1].getClassName()));
44 } catch (ClassNotFoundException e) {
45 e.printStackTrace();
46 }
47 }
48
49 @EventHandler
50 public void onPluginDisable(PluginDisableEvent e) {

Callers

nothing calls this directly

Calls 2

getInstanceMethod · 0.95
getStackTraceMethod · 0.80

Tested by

no test coverage detected