This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
+
+
Package
+
Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+
+
Interfaces (italic)
+
Classes
+
Enums
+
Exceptions
+
Errors
+
Annotation Types
+
+
+
+
Class/Interface
+
Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+
Class inheritance diagram
+
Direct Subclasses
+
All Known Subinterfaces
+
All Known Implementing Classes
+
Class/interface declaration
+
Class/interface description
+
+
+
Nested Class Summary
+
Field Summary
+
Constructor Summary
+
Method Summary
+
+
+
Field Detail
+
Constructor Detail
+
Method Detail
+
+
Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+
+
+
Annotation Type
+
Each annotation type has its own separate page with the following sections:
+
+
Annotation Type declaration
+
Annotation Type description
+
Required Element Summary
+
Optional Element Summary
+
Element Detail
+
+
+
+
Enum
+
Each enum has its own separate page with the following sections:
+
+
Enum declaration
+
Enum description
+
Enum Constant Summary
+
Enum Constant Detail
+
+
+
+
Use
+
Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+
+
+
Tree (Class Hierarchy)
+
There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
+
+
When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
+
When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+
+
+
Deprecated API
+
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+
+
+
Index
+
The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+
+
+
Prev/Next
+
These links take you to the next or previous class, interface, package, or related page.
+
+
+
Frames/No Frames
+
These links show and hide the HTML frames. All pages are available with or without frames.
+
+
+
All Classes
+
The All Classes link shows all classes and interfaces except non-static nested types.
+
+
+
Serialized Form
+
Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
Callback used server side to return a custom synchronization NBTTagCompound.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerNBTProvider server and client side.
+ You are supposed to always return the modified input NBTTagCompound tag.
Callback used server side to return a custom synchronization NBTTagCompound.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerNBTProvider server and client side.
+ You are supposed to always return the modified input NBTTagCompound tag.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerOverrideEntityProvider.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerStackProvider.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Read-only interface for Waila internal config storage.
+ An instance of this interface is passed to most of Waila callbacks as a way to change the behavior depending on client settings.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila Block/TileEntity callbacks.
Callback class interface used to provide Block/TileEntity tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila Entity callbacks.
Callback class interface used to provide Entity tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila FMP callbacks.
Callback class interface used to provide FMP tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
Callback class interface used to provide Block/TileEntity decorator.
+ All methods in this interface shouldn't to be called by the implementing mod. An instance of the class is to be
+ registered to Waila via the IWailaRegistrar instance provided in the original registration callback method
+ (cf. IWailaRegistrar documentation for more information).
Callback for the decorator. It provides a standard GL stack positioned on the block.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerDecorator.
+
+
Parameters:
+
itemStack - Current block scanned, in ItemStack form.
+
accessor - Contains most of the relevant information about the current environment.
Read-only interface for Waila internal config storage.
+ An instance of this interface is passed to most of Waila callbacks as a way to change the behavior depending on client settings.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila Block/TileEntity callbacks.
Callback class interface used to provide Block/TileEntity tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod. An instance of the class is to be
+ registered to Waila via the IWailaRegistrar instance provided in the original registration callback method
+ (cf. IWailaRegistrar documentation for more information).
getNBTData(EntityPlayerMP player,
+ TileEntity te,
+ NBTTagCompound tag,
+ World world,
+ int x,
+ int y,
+ int z)
+
Callback used server side to return a custom synchronization NBTTagCompound.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerNBTProvider server and client side.
+ You are supposed to always return the modified input NBTTagCompound tag.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerStackProvider.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerStackProvider.
+
+
Parameters:
+
accessor - Contains most of the relevant information about the current environment.
+
config - Current configuration of Waila.
+
Returns:
+
null if override is not required, an ItemStack otherwise.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
itemStack - Current block scanned, in ItemStack form.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
itemStack - Current block scanned, in ItemStack form.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
itemStack - Current block scanned, in ItemStack form.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
NBTTagCompound getNBTData(EntityPlayerMP player,
+ TileEntity te,
+ NBTTagCompound tag,
+ World world,
+ int x,
+ int y,
+ int z)
+
Callback used server side to return a custom synchronization NBTTagCompound.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerNBTProvider server and client side.
+ You are supposed to always return the modified input NBTTagCompound tag.
+
+
Parameters:
+
player - The player requesting data synchronization (The owner of the current connection).
+
te - The TileEntity targeted for synchronization.
+
tag - Current synchronization tag (might have been processed by other providers and might be processed by other providers).
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila Entity callbacks.
Callback class interface used to provide Entity tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod. An instance of the class is to be
+ registered to Waila via the IWailaRegistrar instance provided in the original registration callback method
+ (cf. IWailaRegistrar documentation for more information).
Callback used server side to return a custom synchronization NBTTagCompound.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerNBTProvider server and client side.
+ You are supposed to always return the modified input NBTTagCompound tag.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerOverrideEntityProvider.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerOverrideEntityProvider.
+
+
Parameters:
+
accessor - Contains most of the relevant information about the current environment.
+
config - Current configuration of Waila.
+
Returns:
+
null if override is not required, an Entity otherwise.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
entity - Current Entity scanned.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
entity - Current Entity scanned.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
entity - Current Entity scanned.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
Callback used server side to return a custom synchronization NBTTagCompound.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerNBTProvider server and client side.
+ You are supposed to always return the modified input NBTTagCompound tag.
+
+
Parameters:
+
player - The player requesting data synchronization (The owner of the current connection).
+
ent - The Entity targeted for synchronization.
+
tag - Current synchronization tag (might have been processed by other providers and might be processed by other providers).
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila FMP callbacks.
Callback class interface used to provide FMP decorator.
+ All methods in this interface shouldn't to be called by the implementing mod. An instance of the class is to be
+ registered to Waila via the IWailaRegistrar instance provided in the original registration callback method
+ (cf. IWailaRegistrar documentation for more information).
Callback for the decorator. It provides a standard GL stack positioned on the block.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerDecorator.
+
+
Parameters:
+
itemStack - Current block scanned, in ItemStack form.
+
accessor - Contains most of the relevant information about the current environment.
Callback class interface used to provide FMP tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod. An instance of the class is to be
+ registered to Waila via the IWailaRegistrar instance provided in the original registration callback method
+ (cf. IWailaRegistrar documentation for more information).
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
itemStack - Current block scanned, in ItemStack form.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
itemStack - Current block scanned, in ItemStack form.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
+
+
Parameters:
+
itemStack - Current block scanned, in ItemStack form.
+
currenttip - Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+
accessor - Contains most of the relevant information about the current environment.
Main registration interface. An instance will be provided to a method specified in an IMC msg formatted as follow
+ FMLInterModComms.sendMessage("Waila", "register", "fully.qualified.path.to.registration.method");
+ The registration method need to follow this signature
+ public static void callbackRegister(IWailaRegistrar registrar)
+ If not specified otherwise, all the registration methods taking a class can take classes as well as interfaces.
+ Waila will do a lookup using instanceof on the registered classes, meaning that if all your targets inherit one interface, you only need
+ to specify it to cover the whole hierarchy.
+ For the registration of blocks, both Blocks and TileEntities are accepted.
+ For the configuration keys :
+ modname refers to a String used for display in Waila's config panel.
+ keyname refers to an unique key used internally for config query (cf IWailaConfigHandler). Those keys are shared across Waila, keep them unique !
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerOverrideEntityProvider.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerStackProvider.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerStackProvider.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to override the default Waila lookup system.
+ Will be used if the implementing class is registered via IWailaRegistrar.registerOverrideEntityProvider.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerBodyProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerHeadProvider client side.
+ You are supposed to always return the modified input currenttip.
Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ Will be used if the implementing class is registered via IWailaRegistrar.registerTailProvider client side.
+ You are supposed to always return the modified input currenttip.
Read-only interface for Waila internal config storage.
+ An instance of this interface is passed to most of Waila callbacks as a way to change the behavior depending on client settings.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila Block/TileEntity callbacks.
Callback class interface used to provide Block/TileEntity tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila Entity callbacks.
Callback class interface used to provide Entity tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila FMP callbacks.
Callback class interface used to provide FMP tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
Read-only interface for Waila internal config storage.
+ An instance of this interface is passed to most of Waila callbacks as a way to change the behavior depending on client settings.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila Block/TileEntity callbacks.
Callback class interface used to provide Block/TileEntity tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila Entity callbacks.
Callback class interface used to provide Entity tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ An instance of this interface is passed to most of Waila FMP callbacks.
Callback class interface used to provide FMP tooltip informations to Waila.
+ All methods in this interface shouldn't to be called by the implementing mod.
+
+
+
diff --git a/src/doc/package-list b/src/doc/package-list
new file mode 100644
index 0000000..8f012ad
--- /dev/null
+++ b/src/doc/package-list
@@ -0,0 +1 @@
+mcp.mobius.waila.api
diff --git a/src/doc/script.js b/src/doc/script.js
new file mode 100644
index 0000000..b346356
--- /dev/null
+++ b/src/doc/script.js
@@ -0,0 +1,30 @@
+function show(type)
+{
+ count = 0;
+ for (var key in methods) {
+ var row = document.getElementById(key);
+ if ((methods[key] & type) != 0) {
+ row.style.display = '';
+ row.className = (count++ % 2) ? rowColor : altColor;
+ }
+ else
+ row.style.display = 'none';
+ }
+ updateTabs(type);
+}
+
+function updateTabs(type)
+{
+ for (var value in tabs) {
+ var sNode = document.getElementById(tabs[value][0]);
+ var spanNode = sNode.firstChild;
+ if (value == type) {
+ sNode.className = activeTableTab;
+ spanNode.innerHTML = tabs[value][1];
+ }
+ else {
+ sNode.className = tableTab;
+ spanNode.innerHTML = "" + tabs[value][1] + "";
+ }
+ }
+}
diff --git a/src/doc/stylesheet.css b/src/doc/stylesheet.css
new file mode 100644
index 0000000..cebb4fd
--- /dev/null
+++ b/src/doc/stylesheet.css
@@ -0,0 +1,574 @@
+/* Javadoc style sheet */
+/*
+Overall document style
+*/
+
+@import url('resources/fonts/dejavu.css');
+
+body {
+ background-color:#ffffff;
+ color:#353833;
+ font-family:'DejaVu Sans', Arial, Helvetica, sans-serif;
+ font-size:14px;
+ margin:0;
+}
+a:link, a:visited {
+ text-decoration:none;
+ color:#4A6782;
+}
+a:hover, a:focus {
+ text-decoration:none;
+ color:#bb7a2a;
+}
+a:active {
+ text-decoration:none;
+ color:#4A6782;
+}
+a[name] {
+ color:#353833;
+}
+a[name]:hover {
+ text-decoration:none;
+ color:#353833;
+}
+pre {
+ font-family:'DejaVu Sans Mono', monospace;
+ font-size:14px;
+}
+h1 {
+ font-size:20px;
+}
+h2 {
+ font-size:18px;
+}
+h3 {
+ font-size:16px;
+ font-style:italic;
+}
+h4 {
+ font-size:13px;
+}
+h5 {
+ font-size:12px;
+}
+h6 {
+ font-size:11px;
+}
+ul {
+ list-style-type:disc;
+}
+code, tt {
+ font-family:'DejaVu Sans Mono', monospace;
+ font-size:14px;
+ padding-top:4px;
+ margin-top:8px;
+ line-height:1.4em;
+}
+dt code {
+ font-family:'DejaVu Sans Mono', monospace;
+ font-size:14px;
+ padding-top:4px;
+}
+table tr td dt code {
+ font-family:'DejaVu Sans Mono', monospace;
+ font-size:14px;
+ vertical-align:top;
+ padding-top:4px;
+}
+sup {
+ font-size:8px;
+}
+/*
+Document title and Copyright styles
+*/
+.clear {
+ clear:both;
+ height:0px;
+ overflow:hidden;
+}
+.aboutLanguage {
+ float:right;
+ padding:0px 21px;
+ font-size:11px;
+ z-index:200;
+ margin-top:-9px;
+}
+.legalCopy {
+ margin-left:.5em;
+}
+.bar a, .bar a:link, .bar a:visited, .bar a:active {
+ color:#FFFFFF;
+ text-decoration:none;
+}
+.bar a:hover, .bar a:focus {
+ color:#bb7a2a;
+}
+.tab {
+ background-color:#0066FF;
+ color:#ffffff;
+ padding:8px;
+ width:5em;
+ font-weight:bold;
+}
+/*
+Navigation bar styles
+*/
+.bar {
+ background-color:#4D7A97;
+ color:#FFFFFF;
+ padding:.8em .5em .4em .8em;
+ height:auto;/*height:1.8em;*/
+ font-size:11px;
+ margin:0;
+}
+.topNav {
+ background-color:#4D7A97;
+ color:#FFFFFF;
+ float:left;
+ padding:0;
+ width:100%;
+ clear:right;
+ height:2.8em;
+ padding-top:10px;
+ overflow:hidden;
+ font-size:12px;
+}
+.bottomNav {
+ margin-top:10px;
+ background-color:#4D7A97;
+ color:#FFFFFF;
+ float:left;
+ padding:0;
+ width:100%;
+ clear:right;
+ height:2.8em;
+ padding-top:10px;
+ overflow:hidden;
+ font-size:12px;
+}
+.subNav {
+ background-color:#dee3e9;
+ float:left;
+ width:100%;
+ overflow:hidden;
+ font-size:12px;
+}
+.subNav div {
+ clear:left;
+ float:left;
+ padding:0 0 5px 6px;
+ text-transform:uppercase;
+}
+ul.navList, ul.subNavList {
+ float:left;
+ margin:0 25px 0 0;
+ padding:0;
+}
+ul.navList li{
+ list-style:none;
+ float:left;
+ padding: 5px 6px;
+ text-transform:uppercase;
+}
+ul.subNavList li{
+ list-style:none;
+ float:left;
+}
+.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited {
+ color:#FFFFFF;
+ text-decoration:none;
+ text-transform:uppercase;
+}
+.topNav a:hover, .bottomNav a:hover {
+ text-decoration:none;
+ color:#bb7a2a;
+ text-transform:uppercase;
+}
+.navBarCell1Rev {
+ background-color:#F8981D;
+ color:#253441;
+ margin: auto 5px;
+}
+.skipNav {
+ position:absolute;
+ top:auto;
+ left:-9999px;
+ overflow:hidden;
+}
+/*
+Page header and footer styles
+*/
+.header, .footer {
+ clear:both;
+ margin:0 20px;
+ padding:5px 0 0 0;
+}
+.indexHeader {
+ margin:10px;
+ position:relative;
+}
+.indexHeader span{
+ margin-right:15px;
+}
+.indexHeader h1 {
+ font-size:13px;
+}
+.title {
+ color:#2c4557;
+ margin:10px 0;
+}
+.subTitle {
+ margin:5px 0 0 0;
+}
+.header ul {
+ margin:0 0 15px 0;
+ padding:0;
+}
+.footer ul {
+ margin:20px 0 5px 0;
+}
+.header ul li, .footer ul li {
+ list-style:none;
+ font-size:13px;
+}
+/*
+Heading styles
+*/
+div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
+ background-color:#dee3e9;
+ border:1px solid #d0d9e0;
+ margin:0 0 6px -8px;
+ padding:7px 5px;
+}
+ul.blockList ul.blockList ul.blockList li.blockList h3 {
+ background-color:#dee3e9;
+ border:1px solid #d0d9e0;
+ margin:0 0 6px -8px;
+ padding:7px 5px;
+}
+ul.blockList ul.blockList li.blockList h3 {
+ padding:0;
+ margin:15px 0;
+}
+ul.blockList li.blockList h2 {
+ padding:0px 0 20px 0;
+}
+/*
+Page layout container styles
+*/
+.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer {
+ clear:both;
+ padding:10px 20px;
+ position:relative;
+}
+.indexContainer {
+ margin:10px;
+ position:relative;
+ font-size:12px;
+}
+.indexContainer h2 {
+ font-size:13px;
+ padding:0 0 3px 0;
+}
+.indexContainer ul {
+ margin:0;
+ padding:0;
+}
+.indexContainer ul li {
+ list-style:none;
+ padding-top:2px;
+}
+.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
+ font-size:12px;
+ font-weight:bold;
+ margin:10px 0 0 0;
+ color:#4E4E4E;
+}
+.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd {
+ margin:5px 0 10px 0px;
+ font-size:14px;
+ font-family:'DejaVu Sans Mono',monospace;
+}
+.serializedFormContainer dl.nameValue dt {
+ margin-left:1px;
+ font-size:1.1em;
+ display:inline;
+ font-weight:bold;
+}
+.serializedFormContainer dl.nameValue dd {
+ margin:0 0 0 1px;
+ font-size:1.1em;
+ display:inline;
+}
+/*
+List styles
+*/
+ul.horizontal li {
+ display:inline;
+ font-size:0.9em;
+}
+ul.inheritance {
+ margin:0;
+ padding:0;
+}
+ul.inheritance li {
+ display:inline;
+ list-style:none;
+}
+ul.inheritance li ul.inheritance {
+ margin-left:15px;
+ padding-left:15px;
+ padding-top:1px;
+}
+ul.blockList, ul.blockListLast {
+ margin:10px 0 10px 0;
+ padding:0;
+}
+ul.blockList li.blockList, ul.blockListLast li.blockList {
+ list-style:none;
+ margin-bottom:15px;
+ line-height:1.4;
+}
+ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
+ padding:0px 20px 5px 10px;
+ border:1px solid #ededed;
+ background-color:#f8f8f8;
+}
+ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
+ padding:0 0 5px 8px;
+ background-color:#ffffff;
+ border:none;
+}
+ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
+ margin-left:0;
+ padding-left:0;
+ padding-bottom:15px;
+ border:none;
+}
+ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
+ list-style:none;
+ border-bottom:none;
+ padding-bottom:0;
+}
+table tr td dl, table tr td dl dt, table tr td dl dd {
+ margin-top:0;
+ margin-bottom:1px;
+}
+/*
+Table styles
+*/
+.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary {
+ width:100%;
+ border-left:1px solid #EEE;
+ border-right:1px solid #EEE;
+ border-bottom:1px solid #EEE;
+}
+.overviewSummary, .memberSummary {
+ padding:0px;
+}
+.overviewSummary caption, .memberSummary caption, .typeSummary caption,
+.useSummary caption, .constantsSummary caption, .deprecatedSummary caption {
+ position:relative;
+ text-align:left;
+ background-repeat:no-repeat;
+ color:#253441;
+ font-weight:bold;
+ clear:none;
+ overflow:hidden;
+ padding:0px;
+ padding-top:10px;
+ padding-left:1px;
+ margin:0px;
+ white-space:pre;
+}
+.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link,
+.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link,
+.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover,
+.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover,
+.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active,
+.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active,
+.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited,
+.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited {
+ color:#FFFFFF;
+}
+.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span,
+.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span {
+ white-space:nowrap;
+ padding-top:5px;
+ padding-left:12px;
+ padding-right:12px;
+ padding-bottom:7px;
+ display:inline-block;
+ float:left;
+ background-color:#F8981D;
+ border: none;
+ height:16px;
+}
+.memberSummary caption span.activeTableTab span {
+ white-space:nowrap;
+ padding-top:5px;
+ padding-left:12px;
+ padding-right:12px;
+ margin-right:3px;
+ display:inline-block;
+ float:left;
+ background-color:#F8981D;
+ height:16px;
+}
+.memberSummary caption span.tableTab span {
+ white-space:nowrap;
+ padding-top:5px;
+ padding-left:12px;
+ padding-right:12px;
+ margin-right:3px;
+ display:inline-block;
+ float:left;
+ background-color:#4D7A97;
+ height:16px;
+}
+.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab {
+ padding-top:0px;
+ padding-left:0px;
+ padding-right:0px;
+ background-image:none;
+ float:none;
+ display:inline;
+}
+.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd,
+.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd {
+ display:none;
+ width:5px;
+ position:relative;
+ float:left;
+ background-color:#F8981D;
+}
+.memberSummary .activeTableTab .tabEnd {
+ display:none;
+ width:5px;
+ margin-right:3px;
+ position:relative;
+ float:left;
+ background-color:#F8981D;
+}
+.memberSummary .tableTab .tabEnd {
+ display:none;
+ width:5px;
+ margin-right:3px;
+ position:relative;
+ background-color:#4D7A97;
+ float:left;
+
+}
+.overviewSummary td, .memberSummary td, .typeSummary td,
+.useSummary td, .constantsSummary td, .deprecatedSummary td {
+ text-align:left;
+ padding:0px 0px 12px 10px;
+ width:100%;
+}
+th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th,
+td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{
+ vertical-align:top;
+ padding-right:0px;
+ padding-top:8px;
+ padding-bottom:3px;
+}
+th.colFirst, th.colLast, th.colOne, .constantsSummary th {
+ background:#dee3e9;
+ text-align:left;
+ padding:8px 3px 3px 7px;
+}
+td.colFirst, th.colFirst {
+ white-space:nowrap;
+ font-size:13px;
+}
+td.colLast, th.colLast {
+ font-size:13px;
+}
+td.colOne, th.colOne {
+ font-size:13px;
+}
+.overviewSummary td.colFirst, .overviewSummary th.colFirst,
+.overviewSummary td.colOne, .overviewSummary th.colOne,
+.memberSummary td.colFirst, .memberSummary th.colFirst,
+.memberSummary td.colOne, .memberSummary th.colOne,
+.typeSummary td.colFirst{
+ width:25%;
+ vertical-align:top;
+}
+td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover {
+ font-weight:bold;
+}
+.tableSubHeadingColor {
+ background-color:#EEEEFF;
+}
+.altColor {
+ background-color:#FFFFFF;
+}
+.rowColor {
+ background-color:#EEEEEF;
+}
+/*
+Content styles
+*/
+.description pre {
+ margin-top:0;
+}
+.deprecatedContent {
+ margin:0;
+ padding:10px 0;
+}
+.docSummary {
+ padding:0;
+}
+
+ul.blockList ul.blockList ul.blockList li.blockList h3 {
+ font-style:normal;
+}
+
+div.block {
+ font-size:14px;
+ font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif;
+}
+
+td.colLast div {
+ padding-top:0px;
+}
+
+
+td.colLast a {
+ padding-bottom:3px;
+}
+/*
+Formatting effect styles
+*/
+.sourceLineNo {
+ color:green;
+ padding:0 30px 0 0;
+}
+h1.hidden {
+ visibility:hidden;
+ overflow:hidden;
+ font-size:10px;
+}
+.block {
+ display:block;
+ margin:3px 10px 2px 0px;
+ color:#474747;
+}
+.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink,
+.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel,
+.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink {
+ font-weight:bold;
+}
+.deprecationComment, .emphasizedPhrase, .interfaceName {
+ font-style:italic;
+}
+
+div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase,
+div.block div.block span.interfaceName {
+ font-style:normal;
+}
+
+div.contentContainer ul.blockList li.blockList h2{
+ padding-bottom:0px;
+}
diff --git a/src/main/java/mcp/mobius/waila/api/IWailaBlockDecorator.java b/src/main/java/mcp/mobius/waila/api/IWailaBlockDecorator.java
index 935d475..7dc6ba0 100644
--- a/src/main/java/mcp/mobius/waila/api/IWailaBlockDecorator.java
+++ b/src/main/java/mcp/mobius/waila/api/IWailaBlockDecorator.java
@@ -2,8 +2,23 @@ package mcp.mobius.waila.api;
import net.minecraft.item.ItemStack;
+/**
+ * Callback class interface used to provide Block/TileEntity decorator.
+ * All methods in this interface shouldn't to be called by the implementing mod. An instance of the class is to be
+ * registered to Waila via the {@link IWailaRegistrar} instance provided in the original registration callback method
+ * (cf. {@link IWailaRegistrar} documentation for more information).
+ * @author ProfMobius
+ *
+ */
public interface IWailaBlockDecorator {
+ /**
+ * Callback for the decorator. It provides a standard GL stack positioned on the block.
+ * Will be used if the implementing class is registered via {@link IWailaRegistrar}.{@link registerDecorator}.
+ * @param itemStack Current block scanned, in ItemStack form.
+ * @param accessor Contains most of the relevant information about the current environment.
+ * @param config Current configuration of Waila.
+ */
void decorateBlock(ItemStack itemStack, IWailaDataAccessor accessor, IWailaConfigHandler config);
}
diff --git a/src/main/java/mcp/mobius/waila/api/IWailaFMPAccessor.java b/src/main/java/mcp/mobius/waila/api/IWailaFMPAccessor.java
index be44b7b..99fb5e8 100644
--- a/src/main/java/mcp/mobius/waila/api/IWailaFMPAccessor.java
+++ b/src/main/java/mcp/mobius/waila/api/IWailaFMPAccessor.java
@@ -7,9 +7,12 @@ import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
-/* The Accessor is used to get some basic data out of the game without having to request
- * direct access to the game engine.
- * It will also return things that are unmodified by the overriding systems (like getWailaStack).
+/**
+ * The Accessor is used to get some basic data out of the game without having to request direct access to the game engine.
+ * It will also return things that are unmodified by the overriding systems (like getWailaStack).
+ * An instance of this interface is passed to most of Waila FMP callbacks.
+ * @author ProfMobius
+ *
*/
public interface IWailaFMPAccessor {
diff --git a/src/main/java/mcp/mobius/waila/api/IWailaFMPDecorator.java b/src/main/java/mcp/mobius/waila/api/IWailaFMPDecorator.java
index 839af31..5484a56 100644
--- a/src/main/java/mcp/mobius/waila/api/IWailaFMPDecorator.java
+++ b/src/main/java/mcp/mobius/waila/api/IWailaFMPDecorator.java
@@ -2,6 +2,22 @@ package mcp.mobius.waila.api;
import net.minecraft.item.ItemStack;
+/**
+ * Callback class interface used to provide FMP decorator.
+ * All methods in this interface shouldn't to be called by the implementing mod. An instance of the class is to be
+ * registered to Waila via the {@link IWailaRegistrar} instance provided in the original registration callback method
+ * (cf. {@link IWailaRegistrar} documentation for more information).
+ * @author ProfMobius
+ *
+ */
public interface IWailaFMPDecorator {
+
+ /**
+ * Callback for the decorator. It provides a standard GL stack positioned on the block.
+ * Will be used if the implementing class is registered via {@link IWailaRegistrar}.{@link registerDecorator}.
+ * @param itemStack Current block scanned, in ItemStack form.
+ * @param accessor Contains most of the relevant information about the current environment.
+ * @param config Current configuration of Waila.
+ */
void decorateBlock(ItemStack itemStack, IWailaFMPAccessor accessor, IWailaConfigHandler config);
}
diff --git a/src/main/java/mcp/mobius/waila/api/IWailaFMPProvider.java b/src/main/java/mcp/mobius/waila/api/IWailaFMPProvider.java
index 232c83e..6db02fb 100644
--- a/src/main/java/mcp/mobius/waila/api/IWailaFMPProvider.java
+++ b/src/main/java/mcp/mobius/waila/api/IWailaFMPProvider.java
@@ -4,9 +4,51 @@ import java.util.List;
import net.minecraft.item.ItemStack;
+/**
+ * Callback class interface used to provide FMP tooltip informations to Waila.
+ * All methods in this interface shouldn't to be called by the implementing mod. An instance of the class is to be
+ * registered to Waila via the {@link IWailaRegistrar} instance provided in the original registration callback method
+ * (cf. {@link IWailaRegistrar} documentation for more information).
+ * @author ProfMobius
+ *
+ */
public interface IWailaFMPProvider {
- /* The classical HEAD/BODY/TAIL text getters */
+ /**
+ * Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ * Will be used if the implementing class is registered via {@link IWailaRegistrar}.{@link registerHeadProvider} client side.
+ * You are supposed to always return the modified input currenttip.
+ *
+ * @param itemStack Current block scanned, in ItemStack form.
+ * @param currenttip Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+ * @param accessor Contains most of the relevant information about the current environment.
+ * @param config Current configuration of Waila.
+ * @return Modified input currenttip
+ */
List getWailaHead(ItemStack itemStack, List currenttip, IWailaFMPAccessor accessor, IWailaConfigHandler config);
+
+ /**
+ * Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ * Will be used if the implementing class is registered via {@link IWailaRegistrar}.{@link registerBodyProvider} client side.
+ * You are supposed to always return the modified input currenttip.
+ *
+ * @param itemStack Current block scanned, in ItemStack form.
+ * @param currenttip Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+ * @param accessor Contains most of the relevant information about the current environment.
+ * @param config Current configuration of Waila.
+ * @return Modified input currenttip
+ */
List getWailaBody(ItemStack itemStack, List currenttip, IWailaFMPAccessor accessor, IWailaConfigHandler config);
+
+ /**
+ * Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).
+ * Will be used if the implementing class is registered via {@link IWailaRegistrar}.{@link registerTailProvider} client side.
+ * You are supposed to always return the modified input currenttip.
+ *
+ * @param itemStack Current block scanned, in ItemStack form.
+ * @param currenttip Current list of tooltip lines (might have been processed by other providers and might be processed by other providers).
+ * @param accessor Contains most of the relevant information about the current environment.
+ * @param config Current configuration of Waila.
+ * @return Modified input currenttip
+ */
List getWailaTail(ItemStack itemStack, List currenttip, IWailaFMPAccessor accessor, IWailaConfigHandler config);
}
diff --git a/src/main/java/mcp/mobius/waila/api/IWailaRegistrar.java b/src/main/java/mcp/mobius/waila/api/IWailaRegistrar.java
index 066c78e..8d77db9 100644
--- a/src/main/java/mcp/mobius/waila/api/IWailaRegistrar.java
+++ b/src/main/java/mcp/mobius/waila/api/IWailaRegistrar.java
@@ -1,5 +1,22 @@
package mcp.mobius.waila.api;
+/**
+ * Main registration interface. An instance will be provided to a method specified in an IMC msg formatted as follow
+ * FMLInterModComms.sendMessage("Waila", "register", "fully.qualified.path.to.registration.method");
+ * The registration method need to follow this signature
+ * public static void callbackRegister({@link IWailaRegistrar} registrar)
+ * If not specified otherwise, all the registration methods taking a class can take classes as well as interfaces.
+ * Waila will do a lookup using instanceof on the registered classes, meaning that if all your targets inherit one interface, you only need
+ * to specify it to cover the whole hierarchy.
+ * For the registration of blocks, both Blocks and TileEntities are accepted.
+ * For the configuration keys :
+ * modname refers to a String used for display in Waila's config panel.
+ * keyname refers to an unique key used internally for config query (cf {@link IWailaConfigHandler}). Those keys are shared across Waila, keep them unique !
+ *
+ *
+ * @author ProfMobius
+ *
+ */
public interface IWailaRegistrar {
/* Add a config option in the section modname with displayed text configtext and access key keyname */
public void addConfig(String modname, String keyname, String configtext);
@@ -53,6 +70,6 @@ public interface IWailaRegistrar {
public void registerSyncedNBTKey(String key, Class target);
/* UNUSED FOR NOW (Will be used for the ingame wiki */
- public void registerDocTextFile (String filename);
- public void registerShortDataProvider (IWailaSummaryProvider dataProvider, Class item);
+ //public void registerDocTextFile (String filename);
+ //public void registerShortDataProvider (IWailaSummaryProvider dataProvider, Class item);
}
diff --git a/src/main/java/mcp/mobius/waila/api/impl/ModuleRegistrar.java b/src/main/java/mcp/mobius/waila/api/impl/ModuleRegistrar.java
index 03a120d..dec35ca 100644
--- a/src/main/java/mcp/mobius/waila/api/impl/ModuleRegistrar.java
+++ b/src/main/java/mcp/mobius/waila/api/impl/ModuleRegistrar.java
@@ -178,10 +178,12 @@ public class ModuleRegistrar implements IWailaRegistrar {
this.registerProvider(dataProvider, entity, this.overrideEntityProviders);
}
+ /*
@Override
public void registerShortDataProvider(IWailaSummaryProvider dataProvider, Class item) {
this.registerProvider(dataProvider, item, this.summaryProviders);
- }
+ }
+ */
@Override
public void registerDecorator(IWailaBlockDecorator decorator, Class block) {
@@ -387,6 +389,7 @@ public class ModuleRegistrar implements IWailaRegistrar {
}
/* ----------------- */
+ /*
@Override
public void registerDocTextFile(String filename) {
List docData = null;
@@ -417,27 +420,28 @@ public class ModuleRegistrar implements IWailaRegistrar {
}
}
- /*
- String[] sections = docData.split(">>>>");
- for (String s : sections){
- s.trim();
- if (!s.equals("")){
- try{
- String name = s.split("\r?\n",2)[0].trim();
- String desc = s.split("\r?\n",2)[1].trim();
- if (!this.wikiDescriptions.containsKey(modid))
- this.wikiDescriptions.put(modid, new LinkedHashMap ());
- this.wikiDescriptions.get(modid).put(name, desc);
- nentries += 1;
- }catch (Exception e){
- System.out.printf("%s\n", e);
- }
- }
- }
- */
+
+// String[] sections = docData.split(">>>>");
+// for (String s : sections){
+// s.trim();
+// if (!s.equals("")){
+// try{
+// String name = s.split("\r?\n",2)[0].trim();
+// String desc = s.split("\r?\n",2)[1].trim();
+// if (!this.wikiDescriptions.containsKey(modid))
+// this.wikiDescriptions.put(modid, new LinkedHashMap ());
+// this.wikiDescriptions.get(modid).put(name, desc);
+// nentries += 1;
+// }catch (Exception e){
+// System.out.printf("%s\n", e);
+// }
+// }
+// }
+
Waila.log.log(Level.INFO, String.format("Registered %s entries from %s", nentries, filename));
}
-
+ */
+
public boolean hasDocTextModID(String modid){
return this.wikiDescriptions.containsKey(modid);
}