Commit b426b00 1 parent 80a7caa commit b426b00 Copy full SHA for b426b00
File tree 1 file changed +25
-0
lines changed
game-runner/src/v1_20_4/java/io/masel/nbtviewer/v1_20_4
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ package io .masel .nbtviewer .v1_20_4 ;
2
+
3
+ import io .masel .nbtviewer .api .INBTApi ;
4
+ import net .labymod .api .models .Implements ;
5
+ import net .labymod .api .nbt .tags .NBTTagCompound ;
6
+ import net .minecraft .client .Minecraft ;
7
+ import net .minecraft .nbt .CompoundTag ;
8
+ import net .minecraft .nbt .NbtUtils ;
9
+
10
+ @ Implements (INBTApi .class )
11
+ public class NBTApiImpl implements INBTApi {
12
+
13
+ @ Override
14
+ public boolean hasAdvancedToolsTips () {
15
+ return Minecraft .getInstance ().options .advancedItemTooltips ;
16
+ }
17
+
18
+ @ Override
19
+ public String prettyPrint (NBTTagCompound nbtTagCompound ) {
20
+ CompoundTag compound = (CompoundTag ) nbtTagCompound ;
21
+
22
+ return NbtUtils .prettyPrint (compound );
23
+ }
24
+
25
+ }
You can’t perform that action at this time.
0 commit comments