File size: 415 Bytes
d46f4a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
    }
}