#1131: Added methods to get translation keys for materials, itemstacks and more

By: mfnalex <mfnalex@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2023-02-10 20:50:24 +11:00
parent b9bf523b80
commit abeb7e6d0c
2 changed files with 31 additions and 0 deletions

View File

@@ -642,4 +642,9 @@ public class CraftBlock implements Block {
return iblockdata.canSurvive(world, this.position);
}
@Override
public String getTranslationKey() {
return getNMS().getBlock().getDescriptionId();
}
}