Class ItemInlineData

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

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

    • ItemInlineData

      public ItemInlineData(net.minecraft.item.ItemStack stack)
  • Method Details

    • getType

      public ItemInlineData.ItemDataType getType()
      Description copied from interface: InlineData
      Gets the InlineDataType of this data. Used mostly for serialization.
      Specified by:
      getType in interface InlineData<ItemInlineData>
      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<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)