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>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.text.StylegetDataStyle(boolean withAdditional) net.minecraft.text.HoverEventnet.minecraft.util.IdentifierGets whichInlineRenderershould be used for rendering this data.getType()Gets the InlineDataType of this data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.samsthenerd.inline.api.InlineData
asStyle, asText, getExtraStyle
-
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:InlineDataGets the InlineDataType of this data. Used mostly for serialization.- Specified by:
getTypein interfaceInlineData<PlayerHeadData>- Returns:
- type of this data.
-
getRendererId
public net.minecraft.util.Identifier getRendererId()Description copied from interface:InlineDataGets whichInlineRenderershould be used for rendering this data.- Specified by:
getRendererIdin interfaceInlineData<PlayerHeadData>- Returns:
- id of renderer
-
getEntityDisplayHoverEvent
public net.minecraft.text.HoverEvent getEntityDisplayHoverEvent() -
getDataStyle
public net.minecraft.text.Style getDataStyle(boolean withAdditional)
-