geforkt von Mirrors/Paper
#1426: Deprecate more unused methods in UnsafeValues
By: 2008Choco <hawkeboyz2@hotmail.com>
Dieser Commit ist enthalten in:
Ursprung
8537c328d0
Commit
5f8b82d6cc
@ -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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren