Interface IPropertyFormat

All Known Implementing Classes:
PropertyFormat

public interface IPropertyFormat
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.network.chat.MutableComponent
    format(net.minecraft.network.chat.Component property, net.minecraft.network.chat.Component value)
    Formats a property and value using the alignment.
    net.minecraft.resources.ResourceLocation
    A namespaced identifier that is used to derive localization keys for the format.
  • Method Details

    • formatKey

      net.minecraft.resources.ResourceLocation formatKey()
      A namespaced identifier that is used to derive localization keys for the format.
      Returns:
      The namespace ID for the format.
    • format

      default net.minecraft.network.chat.MutableComponent format(net.minecraft.network.chat.Component property, net.minecraft.network.chat.Component value)
      Formats a property and value using the alignment.
      Parameters:
      property - The name of the property.
      value - The value of the property.
      Returns:
      A component that represents an aligned property and value.