Class PlayerHeadData

java.lang.Object
com.samsthenerd.inline.api.data.PlayerHeadData
All Implemented Interfaces:
InlineData<PlayerHeadData>

public class PlayerHeadData extends Object implements InlineData<PlayerHeadData>
  • Field Details

    • profile

      public final com.mojang.authlib.GameProfile profile
  • Constructor Details

    • PlayerHeadData

      public PlayerHeadData(com.mojang.authlib.GameProfile profile)
  • Method Details

    • getType

      Description copied from interface: InlineData
      Gets the InlineDataType of this data. Used mostly for serialization.
      Specified by:
      getType in interface InlineData<PlayerHeadData>
      Returns:
      type of this data.
    • getRendererId

      public net.minecraft.util.Identifier getRendererId()
      Description copied from interface: InlineData
      Gets which InlineRenderer should be used for rendering this data.
      Specified by:
      getRendererId in interface InlineData<PlayerHeadData>
      Returns:
      id of renderer
    • getEntityDisplayHoverEvent

      public net.minecraft.text.HoverEvent getEntityDisplayHoverEvent()
    • getDataStyle

      public net.minecraft.text.Style getDataStyle(boolean withAdditional)