mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
#1426: Deprecate more unused methods in UnsafeValues
By: 2008Choco <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
8537c328d0
commit
5f8b82d6cc
1 changed files with 3 additions and 5 deletions
|
@ -335,19 +335,17 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
|||
|
||||
@Override
|
||||
public CreativeCategory getCreativeCategory(Material material) {
|
||||
return CreativeCategory.BUILDING_BLOCKS; // TODO: Figure out what to do with this
|
||||
return material.getCreativeCategory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBlockTranslationKey(Material material) {
|
||||
Block block = getBlock(material);
|
||||
return (block != null) ? block.getDescriptionId() : null;
|
||||
return material.getBlockTranslationKey();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getItemTranslationKey(Material material) {
|
||||
Item item = getItem(material);
|
||||
return (item != null) ? item.getDescriptionId() : null;
|
||||
return material.getItemTranslationKey();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue