11package edu .whimc .observations .models ;
22
3- /* original HD displays imports
43import com .gmail .filoghost .holographicdisplays .api .Hologram ;
54import com .gmail .filoghost .holographicdisplays .api .HologramsAPI ;
65import com .gmail .filoghost .holographicdisplays .api .handler .TouchHandler ;
76import com .gmail .filoghost .holographicdisplays .api .line .TouchableLine ;
8- */
9- import eu .decentsoftware .holograms .api .DHAPI ;
10- import eu .decentsoftware .holograms .api .holograms .Hologram ;
11- import eu .decentsoftware .holograms .api .holograms .HologramLine ;
12- import eu .decentsoftware .holograms .api .DecentHologramsAPI ;
13- import eu .decentsoftware .holograms .event .DecentHologramsEvent ;
14- import eu .decentsoftware .holograms .event .HologramClickEvent ;
15- import eu .decentsoftware .holograms .api .utils .Common ;
167import edu .whimc .observations .Observations ;
178import edu .whimc .observations .observetemplate .models .ObservationTemplate ;
189import edu .whimc .observations .utils .Utils ;
@@ -165,13 +156,13 @@ public static List<String> getPlayersTabComplete(String hint) {
165156 }
166157
167158 private void createHologram () {
168- Hologram holo = DHAPI .createHologram (this .plugin , this .holoLoc );
159+ Hologram holo = HologramsAPI .createHologram (this .plugin , this .holoLoc );
169160
170161 List <TouchableLine > lines = new ArrayList <>();
171162
172- DHAPI . addHologramLine ( lines , new ItemStack (this .hologramItem ));
173- DHAPI . addHologramLine ( lines , Utils .color (this .observation ));
174- DHAPI . addHologramLine ( lines , ChatColor .GRAY + this .playerName + " - " + Utils .getDate (this .timestamp ));
163+ lines . add ( holo . appendItemLine ( new ItemStack (this .hologramItem ) ));
164+ lines . add ( holo . appendTextLine ( Utils .color (this .observation ) ));
165+ lines . add ( holo . appendTextLine ( ChatColor .GRAY + this .playerName + " - " + Utils .getDate (this .timestamp ) ));
175166
176167 if (this .expiration != null ) {
177168 lines .add (holo .appendTextLine (ChatColor .GRAY + "Expires " + Utils .getDate (this .expiration )));
@@ -274,7 +265,7 @@ public void deleteHologramOnly() {
274265 }
275266 }
276267
277- private class ObservationClick implements DecentHologramsEvent {
268+ private class ObservationClick implements TouchHandler {
278269
279270 private final Location loc ;
280271
@@ -288,4 +279,4 @@ public void onTouch(Player player) {
288279 }
289280 }
290281
291- }
282+ }
0 commit comments