ModsJava
[API] HologramAPI
Java mod listed for Minecraft 1.7–1.10. Download on the author's site.
⬇ Download on SpigotThis API allows you to easily create holograms.
Compared to other Hologram APIs (like HolographicDisplays) it is more lightweight because it uses Reflection and only sends the packets instead of extending the NMS classes.
This API also allows you to directly attach holograms to players and entities, so they are "riding" on it to remove any need for constantly teleporting the hologram.
Depends on PacketListenerAPI (If you want touchable holograms or per-player hologram contents)
Note: Please use version 3.4.4 or lower
1.9/1.10 Compatibility with ProtocolSupport is not tested yet
Hologram hologram = HologramAPI. createHologram (location, "I'm a hologram. Hey %%player%%!" ) ;
hologram. addViewHandler ( new ViewHandler ( ) {
@Override
public String onView (Hologram hologram, Player player, String string ) {
return string. replace ( "%%player%%", player. getName ( ) ) ;
}
} ) ;
hologram. setTouchable ( true ) ;
hologram. addTouchHandler ( new TouchHandler ( ) {
@Override
public void onTouch (Hologram hologram, Player player, TouchAction action ) {
player. sendMessage ( "You touched the Hologram! Your action: " + action ) ;
}
} ) ;
hologram. spawn ( ) ;
Maven
<repository>
<id>inventive-repo</id>
<url>https://repo.inventivetalent.org/content/repositories/releases</url>
</repository>
<dependency>
<groupId>org.inventivetalent</groupId>
<artifactId>hologramapi</artifactId>
<version>1.4.0</version>
</dependency>
Links
Thanks to some of my Supporters:
Compared to other Hologram APIs (like HolographicDisplays) it is more lightweight because it uses Reflection and only sends the packets instead of extending the NMS classes.
This API also allows you to directly attach holograms to players and entities, so they are "riding" on it to remove any need for constantly teleporting the hologram.
Depends on PacketListenerAPI (If you want touchable holograms or per-player hologram contents)
Note: Please use version 3.4.4 or lower
1.9/1.10 Compatibility with ProtocolSupport is not tested yet
Code (Java):
Hologram hologram = HologramAPI. createHologram (location, "I'm a hologram. Hey %%player%%!" ) ;
hologram. addViewHandler ( new ViewHandler ( ) {
@Override
public String onView (Hologram hologram, Player player, String string ) {
return string. replace ( "%%player%%", player. getName ( ) ) ;
}
} ) ;
hologram. setTouchable ( true ) ;
hologram. addTouchHandler ( new TouchHandler ( ) {
@Override
public void onTouch (Hologram hologram, Player player, TouchAction action ) {
player. sendMessage ( "You touched the Hologram! Your action: " + action ) ;
}
} ) ;
hologram. spawn ( ) ;
Maven
Code (Text):
<repository>
<id>inventive-repo</id>
<url>https://repo.inventivetalent.org/content/repositories/releases</url>
</repository>
<dependency>
<groupId>org.inventivetalent</groupId>
<artifactId>hologramapi</artifactId>
<version>1.4.0</version>
</dependency>
Links
Thanks to some of my Supporters:
- MOTDgd
- md_5
- Lucy S.
Code (spiget-meta (Unknown Language)):
SlZOd2EkUm9kI1J3SihVa1drZDNkV0Y+TitKYVZ6VXdZVmhhYkdSI1JuTmFWelV3K0cwNWVWcDNQKzBrSiRSTU0wSnpaRmRrY0dKcE9EMGtKJFJqUjNnKldqSnNkVntWWiNOaU0yUihWVVZyYldSdFZubGpNbSoyWW1vd2JHUnRWbmxqTW0qMlltbFZQJFIjWj5RbA==
Please leave a rating if you like this resource.
Donations to support me or this resource are also very much appreciated.
Donations to support me or this resource are also very much appreciated.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
[API] HologramAPI is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10. Downloaded 25,360 times (via Spigot). Download it and open it directly in the game.