soiz1's picture
Upload folder using huggingface_hub
d46f4a3 verified
package net.minecraft.world;
import javax.annotation.Nullable;
import net.minecraft.network.chat.Component;
public interface Nameable {
Component getName();
default boolean hasCustomName() {
return this.getCustomName() != null;
}
default Component getDisplayName() {
return this.getName();
}
@Nullable
default Component getCustomName() {
return null;
}
}