Interface Nameable

All Known Subinterfaces:
BlockProtection, BlockProtectionInfo, EntityProtection, Protection

public interface Nameable
Represents an entity that can have a custom display name.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Get the display name.
    @Nullable String
    Get the name.
  • Method Details

    • getDisplayName

      @NotNull @NotNull String getDisplayName()
      Get the display name.
      Returns:
      if getName() returns null, this will return a system generated name depending on the protection type.
    • getName

      @Nullable @Nullable String getName()
      Get the name.
      Returns:
      null, if no custom name was set.