#1426: Deprecate more unused methods in UnsafeValues

This commit is contained in:
2008Choco 2024-06-17 20:56:19 +10:00 committed by md_5
parent 2c9dd879e7
commit 3f8e4161fd
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -335,19 +335,17 @@ public final class CraftMagicNumbers implements UnsafeValues {
@Override @Override
public CreativeCategory getCreativeCategory(Material material) { public CreativeCategory getCreativeCategory(Material material) {
return CreativeCategory.BUILDING_BLOCKS; // TODO: Figure out what to do with this return material.getCreativeCategory();
} }
@Override @Override
public String getBlockTranslationKey(Material material) { public String getBlockTranslationKey(Material material) {
Block block = getBlock(material); return material.getBlockTranslationKey();
return (block != null) ? block.getDescriptionId() : null;
} }
@Override @Override
public String getItemTranslationKey(Material material) { public String getItemTranslationKey(Material material) {
Item item = getItem(material); return material.getItemTranslationKey();
return (item != null) ? item.getDescriptionId() : null;
} }
@Override @Override