ItemsPackage

public class ItemsPackage extends EMPackage

Constructors

Link copied to clipboard
public void ItemsPackage(ContentPackagesConfigFields contentPackagesConfigFields)

Inherited properties

Link copied to clipboard
Link copied to clipboard
protected final static Map<String, EMPackage> content
Link copied to clipboard
Link copied to clipboard
public final static Map<String, EMPackage> emPackages
Link copied to clipboard
protected volatile boolean isDownloaded
Link copied to clipboard
protected volatile boolean isInstalled
Link copied to clipboard
public ItemStack itemStack
Link copied to clipboard
protected List<NPCEntity> npcEntities
Link copied to clipboard
protected volatile boolean outOfDate
Link copied to clipboard

Functions

Link copied to clipboard
public void baseInitialization()
Very first initialization - checks if content is downloaded / installed, loads worlds
Link copied to clipboard
public void doDownload(Player player)
Items packages ship inside the plugin jar — there is nothing to download.
Link copied to clipboard
public void doInstall(Player player)
Link copied to clipboard
public void doUninstall(Player player)
Link copied to clipboard
Link copied to clipboard
protected ItemStack getPartiallyInstalledItemStack()
Bundled content: partial means members were disabled, not that files are missing — the tooltip must promise enabling, matching what doDownload (the action a partial-state click runs) actually does.
Link copied to clipboard
public void initializeContent()
Initializes content - this means it associates bosses, treasure chests and NPCs to the dungeon (if not instanced)

Inherited functions

Link copied to clipboard
protected static boolean bulkMemberTogglesLocked()
Link copied to clipboard
protected abstract void doDownload(Player p)
Link copied to clipboard
protected abstract void doInstall(Player p)
Link copied to clipboard
public void doShowAccessInfo(Player player)
protected abstract void doShowAccessInfo(Player p)
Link copied to clipboard
protected abstract void doUninstall(Player p)
Link copied to clipboard
public CompletableFuture<Void> enableAfterDownload()
Link copied to clipboard
protected ItemStack generateItemStackWithIcon(List<String> specificTooltip, Material material, String modelId)
Link copied to clipboard
public static EMPackage getContent(String data)
Data gets stored under two formats: either the filename, i.e.
Link copied to clipboard
public String getContentPageUrl()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public String getDisplayName()
public abstract String getDisplayName()
Link copied to clipboard
public String getDownloadLink()
public abstract String getDownloadLink()
Link copied to clipboard
public static Map<String, EMPackage> getEmPackages()
Link copied to clipboard
protected ItemStack getInstalledItemStack()
protected abstract ItemStack getInstalledItemStack()
Link copied to clipboard
public ItemStack getItemStack()
Link copied to clipboard
public ItemStack getItemstack()
Link copied to clipboard
public int getLocalVersion()
public abstract int getLocalVersion()
Link copied to clipboard
public static Set<String> getMetaPackageChildFilenames()
Returns filenames of packages that are children of MetaPackages.
Link copied to clipboard
protected ItemStack getNeedsAccessItemStack()
protected abstract ItemStack getNeedsAccessItemStack()
Link copied to clipboard
public String getNightbreakSlug()
public abstract String getNightbreakSlug()
Link copied to clipboard
protected ItemStack getNotDownloadedItemStack()
protected abstract ItemStack getNotDownloadedItemStack()
Link copied to clipboard
protected ItemStack getNotInstalledItemStack()
protected abstract ItemStack getNotInstalledItemStack()
Link copied to clipboard
protected ItemStack getOutOfDateNoAccessItemStack()
protected abstract ItemStack getOutOfDateNoAccessItemStack()
Link copied to clipboard
protected ItemStack getOutOfDateUpdatableItemStack()
protected abstract ItemStack getOutOfDateUpdatableItemStack()
Link copied to clipboard
protected abstract ItemStack getPartiallyInstalledItemStack()
Link copied to clipboard
public static void initialize(ContentPackagesConfigFields contentPackagesConfigFields)
Link copied to clipboard
public boolean isDownloaded()
public abstract boolean isDownloaded()
Link copied to clipboard
public boolean isInstalled()
public abstract boolean isInstalled()
Link copied to clipboard
public boolean isOutOfDate()
public abstract boolean isOutOfDate()
Link copied to clipboard
protected static void notify(Player player, String message)
Install/uninstall feedback that tolerates a missing player: setup actions can come from the console or automation, where the message belongs in the server log instead of a chat window.
Link copied to clipboard
public void onClick(Player player)
Link copied to clipboard
public void refreshState()
Forces re-derivation of isDownloaded/isInstalled state from children (for MetaPackages) or from the current content state.
Link copied to clipboard
Link copied to clipboard
public void setDownloaded(boolean isDownloaded)
Link copied to clipboard
public void setInstalled(boolean isInstalled)
Link copied to clipboard
public void setOutOfDate(boolean outOfDate)
public abstract void setOutOfDate(boolean p)
Link copied to clipboard
public void setupMenuToggle(Player player)
Link copied to clipboard
public static void shutdown()
Link copied to clipboard
protected static void submitBulkMemberSaves(Player player, Collection<? extends CompletableFuture<Void>> saves, String reloadingMessage, String contentType)
Queues a batch of member-configuration saves for the shared end-of-tick flush.