Newer
Older
void-pack-super-server / work / decompile-ee3ecae0 / net / minecraft / server / INamableTileEntity.java
Simon Lindgren on 26 Mar 2020 434 bytes first commit
package net.minecraft.server;

import javax.annotation.Nullable;

public interface INamableTileEntity {

    IChatBaseComponent getDisplayName();

    default boolean hasCustomName() {
        return this.getCustomName() != null;
    }

    default IChatBaseComponent getScoreboardDisplayName() {
        return this.getDisplayName();
    }

    @Nullable
    default IChatBaseComponent getCustomName() {
        return null;
    }
}