cn.nukkit.metadata.MetadataValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.metadata;
import cn.nukkit.plugin.Plugin;
import java.lang.ref.WeakReference;
/**
* @author MagicDroidX (Nukkit Project)
*/
public abstract class MetadataValue {
protected final WeakReference owningPlugin;
protected MetadataValue(Plugin owningPlugin) {
this.owningPlugin = new WeakReference<>(owningPlugin);
}
public Plugin getOwningPlugin() {
return this.owningPlugin.get();
}
public abstract Object value();
public abstract void invalidate();
}