Package com.samsthenerd.inline.api.data
Class ItemInlineData
java.lang.Object
com.samsthenerd.inline.api.data.ItemInlineData
- All Implemented Interfaces:
InlineData<ItemInlineData>
-
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 TypeMethodDescriptionnet.minecraft.util.IdentifierGets whichInlineRenderershould be used for rendering this data.net.minecraft.item.ItemStackgetStack()getType()Gets the InlineDataType of this data.static net.minecraft.text.Textmake(net.minecraft.item.ItemStack stack) 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
-
Constructor Details
-
ItemInlineData
public ItemInlineData(net.minecraft.item.ItemStack stack)
-
-
Method Details
-
getType
Description copied from interface:InlineDataGets the InlineDataType of this data. Used mostly for serialization.- Specified by:
getTypein interfaceInlineData<ItemInlineData>- 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<ItemInlineData>- Returns:
- id of renderer
-
getStack
public net.minecraft.item.ItemStack getStack() -
make
public static net.minecraft.text.Text make(net.minecraft.item.ItemStack stack)
-