ShulkerBoxTooltip

What's in my shulker box?

MIT License

Stars
98
Committers
18

Shulker Box Tooltip
Maven
CurseForge
Modrinth
CI
Crowdin

This mod allows you to see a preview window of a shulker box contents when hovering above it in an inventory by pressing shift.

Help translate ShulkerBoxTooltip on Crowdin! Please vote for this to be included in vanilla!

Developers

List of artifacts

  • com.misterpemodder:shulkerboxtooltip-common: Platform-agnostic API (with Yarn/intermediary mappings)
  • com.misterpemodder:shulkerboxtooltip-common-mojmap: Platform-agnostic API (with official Mojang mappings)
  • com.misterpemodder:shulkerboxtooltip-fabric: Fabric Implementation
  • com.misterpemodder:shulkerboxtooltip-forge: Forge-specific API + Implementation
  • com.misterpemodder:shulkerboxtooltip-neoforge: NeoForge-specific API + Implementation

Declaring the dependency (Fabric Loom/Architectury Loom)

repositories {
    maven { url "https://maven.misterpemodder.com/libs-release/" }
}

dependencies {
    // Change to 'shulkerboxtooltip-forge', 'shulkerboxtooltip-neoforge', or 'shulkerboxtooltip-common' depending on the artifact
    modImplementation("com.misterpemodder:shulkerboxtooltip-fabric:VERSION") { transitive false }
}

API

To use the API, implement the ShulkerBoxTooltipApi interface on a class and register it as a plugin.

On Fabric, add your plugin class as an entry point of type "shulkerboxtooltip" in your fabric.mod.json as such:

"entrypoints": {
    "shulkerboxtooltip": [
      "com.example.mymod.MyShulkerBoxTooltipPlugin"
    ]
}

On Forge and NeoForge, register your plugin by adding an extension point in your mod's initialization code:

ModLoadingContext.get().registerExtensionPoint(ShulkerBoxTooltipPlugin.class,
    () -> new ShulkerBoxTooltipPlugin(MyModShulkerBoxTooltipPlugin::new));

See api source for documentation.