📜  从另一个类 spigot 访问主类 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:09.392000             🧑  作者: Mango

代码示例1
private MainClassName plugin;

public currentClassname(MainClassName instance) {
    plugin = instance;
}

// you can then use your plugin as the plugin variable