Deprecated Material

This commit is contained in:
DerFrZocker 2023-05-19 20:02:50 +02:00
parent a995df2a25
commit b5f483b07d
No known key found for this signature in database
GPG key ID: 713F71FFFE1DDF91
2 changed files with 4 additions and 0 deletions

View file

@ -117,7 +117,9 @@ import org.jetbrains.annotations.Nullable;
/**
* An enum of all material IDs accepted by the official server and client
* @deprecated Material was split up into {@link ItemType} and {@link BlockType}
*/
@Deprecated
public enum Material implements Keyed, Translatable {
//<editor-fold desc="Materials" defaultstate="collapsed">
AIR(9648, 0),

View file

@ -129,7 +129,9 @@ public interface Registry<T extends Keyed> extends Iterable<T> {
* Server materials.
*
* @see Material
* @deprecated Material was split up into {@link ItemType} and {@link BlockType}
*/
@Deprecated
Registry<Material> MATERIAL = new SimpleRegistry<>(Material.class, (mat) -> !mat.isLegacy());
/**
* Server statistics.