forked from ByteExceptionM/laby-nbt-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ByteExceptionM#2 from RappyLabyAddons/master
Add 1.20.2 support, fix 1.19.4-1.20.1, keep up labygradle version
- Loading branch information
Showing
7 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...resources/assets/nbtaddon/i18n/en_us.json → ...sources/assets/nbt-viewer/i18n/en_us.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
game-runner/src/v1_20_2/java/io/masel/nbtviewer/v1_20_2/NBTApiImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.masel.nbtviewer.v1_20_2; | ||
|
||
import io.masel.nbtviewer.api.INBTApi; | ||
import net.labymod.api.models.Implements; | ||
import net.labymod.api.nbt.tags.NBTTagCompound; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.nbt.CompoundTag; | ||
import net.minecraft.nbt.NbtUtils; | ||
|
||
@Implements(INBTApi.class) | ||
public class NBTApiImpl implements INBTApi { | ||
|
||
@Override | ||
public boolean hasAdvancedToolsTips() { | ||
return Minecraft.getInstance().options.advancedItemTooltips; | ||
} | ||
|
||
@Override | ||
public String prettyPrint(NBTTagCompound nbtTagCompound) { | ||
CompoundTag compound = (CompoundTag) nbtTagCompound; | ||
|
||
return NbtUtils.prettyPrint(compound); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters