public interface IWailaDataProvider
IWailaRegistrar instance provided in the original registration callback method
(cf. IWailaRegistrar documentation for more information).| Modifier and Type | Method and Description |
|---|---|
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. |
List<String> |
getWailaBody(ItemStack itemStack,
List<String> currenttip,
IWailaDataAccessor 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
IWailaRegistrar.registerBodyProvider client side.
You are supposed to always return the modified input currenttip. |
List<String> |
getWailaHead(ItemStack itemStack,
List<String> currenttip,
IWailaDataAccessor 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
IWailaRegistrar.registerHeadProvider client side.
You are supposed to always return the modified input currenttip. |
ItemStack |
getWailaStack(IWailaDataAccessor accessor,
IWailaConfigHandler config)
Callback used to override the default Waila lookup system.
Will be used if the implementing class is registered via
IWailaRegistrar.registerStackProvider. |
List<String> |
getWailaTail(ItemStack itemStack,
List<String> currenttip,
IWailaDataAccessor 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
IWailaRegistrar.registerTailProvider client side.
You are supposed to always return the modified input currenttip. |
ItemStack getWailaStack(IWailaDataAccessor accessor, IWailaConfigHandler config)
IWailaRegistrar.registerStackProvider.accessor - Contains most of the relevant information about the current environment.config - Current configuration of Waila.List<String> getWailaHead(ItemStack itemStack,
List<String> currenttip,
IWailaDataAccessor accessor,
IWailaConfigHandler config)
IWailaRegistrar.registerHeadProvider client side.
You are supposed to always return the modified input currenttip.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.config - Current configuration of Waila.List<String> getWailaBody(ItemStack itemStack,
List<String> currenttip,
IWailaDataAccessor accessor,
IWailaConfigHandler config)
IWailaRegistrar.registerBodyProvider client side.
You are supposed to always return the modified input currenttip.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.config - Current configuration of Waila.List<String> getWailaTail(ItemStack itemStack,
List<String> currenttip,
IWailaDataAccessor accessor,
IWailaConfigHandler config)
IWailaRegistrar.registerTailProvider client side.
You are supposed to always return the modified input currenttip.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.config - Current configuration of Waila.NBTTagCompound getNBTData(EntityPlayerMP player,
TileEntity te,
NBTTagCompound tag,
World world,
int x,
int y,
int z)
IWailaRegistrar.registerNBTProvider server and client side.
You are supposed to always return the modified input NBTTagCompound tag.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).world - TileEntity's World.x - X position of the TileEntity.y - Y position of the TileEntity.z - Z position of the TileEntity.