Class PlayerHeadData

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

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

    • PlayerHeadData

      public PlayerHeadData(net.minecraft.component.type.ProfileComponent 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)
    • profile

      public net.minecraft.component.type.ProfileComponent profile()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object