Interface InfoProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InfoProvider
A supplier of debug information. May be queried on the client or server.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    getInfo(@Nullable net.minecraft.world.entity.player.Player player)
     
    default String
    getInfoSafe(net.minecraft.world.entity.player.Player player)
     
  • Method Details

    • getInfo

      @Nullable @Nullable String getInfo(@Nullable @Nullable net.minecraft.world.entity.player.Player player)
      Parameters:
      player - the player requesting the data. May be null
    • getInfoSafe

      default String getInfoSafe(net.minecraft.world.entity.player.Player player)