Package com.samsthenerd.inline.api.data
Class PlayerHeadData
java.lang.Object
com.samsthenerd.inline.api.data.PlayerHeadData
- All Implemented Interfaces:
InlineData<PlayerHeadData>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.samsthenerd.inline.api.InlineData
InlineData.InlineDataType<D extends InlineData<D>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
net.minecraft.text.Style
getDataStyle
(boolean withAdditional) net.minecraft.text.HoverEvent
net.minecraft.util.Identifier
Gets whichInlineRenderer
should be used for rendering this data.getType()
Gets the InlineDataType of this data.int
hashCode()
net.minecraft.component.type.ProfileComponent
profile()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.samsthenerd.inline.api.InlineData
asStyle, asText, getExtraStyle
-
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 interfaceInlineData<PlayerHeadData>
- Returns:
- type of this data.
-
getRendererId
public net.minecraft.util.Identifier getRendererId()Description copied from interface:InlineData
Gets whichInlineRenderer
should be used for rendering this data.- Specified by:
getRendererId
in interfaceInlineData<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
-
hashCode
public int hashCode() -
toString
-