Class BlockEntityMixin

java.lang.Object
foundry.veil.mixin.tooltip.BlockEntityMixin
All Implemented Interfaces:
Tooltippable

public class BlockEntityMixin extends Object implements Tooltippable
  • Constructor Details

    • BlockEntityMixin

      public BlockEntityMixin()
  • Method Details

    • getTooltip

      public List<net.minecraft.network.chat.Component> getTooltip()
      Description copied from interface: Tooltippable
      Get the tooltip components from the block entity
      Specified by:
      getTooltip in interface Tooltippable
      Returns:
      the tooltip components
    • isTooltipEnabled

      public boolean isTooltipEnabled()
      Specified by:
      isTooltipEnabled in interface Tooltippable
    • saveTooltipData

      public net.minecraft.nbt.CompoundTag saveTooltipData()
      Specified by:
      saveTooltipData in interface Tooltippable
    • loadTooltipData

      public void loadTooltipData(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      loadTooltipData in interface Tooltippable
    • setTooltip

      public void setTooltip(List<net.minecraft.network.chat.Component> tooltip)
      Description copied from interface: Tooltippable
      Set the tooltip components for the block entity
      Specified by:
      setTooltip in interface Tooltippable
      Parameters:
      tooltip - the tooltip components to set
    • addTooltip

      public void addTooltip(net.minecraft.network.chat.Component tooltip)
      Description copied from interface: Tooltippable
      Add a tooltip component to the block entity
      Specified by:
      addTooltip in interface Tooltippable
    • addTooltip

      public void addTooltip(List<net.minecraft.network.chat.Component> tooltip)
      Description copied from interface: Tooltippable
      Add a list of tooltip components to the block entity
      Specified by:
      addTooltip in interface Tooltippable
    • addTooltip

      public void addTooltip(String tooltip)
      Description copied from interface: Tooltippable
      Add a tooltip component to the block entity
      Specified by:
      addTooltip in interface Tooltippable
    • getTheme

      public ColorTheme getTheme()
      Description copied from interface: Tooltippable
      Get the theme object for the tooltip from the block entity
      Specified by:
      getTheme in interface Tooltippable
      Returns:
      the theme object
      See Also:
    • setTheme

      public void setTheme(ColorTheme theme)
      Description copied from interface: Tooltippable
      Set the theme object for the tooltip from the block entity
      Specified by:
      setTheme in interface Tooltippable
      Parameters:
      theme - the theme object to set
    • setBackgroundColor

      public void setBackgroundColor(int color)
      Description copied from interface: Tooltippable
      Set the background color of the theme
      Specified by:
      setBackgroundColor in interface Tooltippable
      Parameters:
      color - the color to set
    • setTopBorderColor

      public void setTopBorderColor(int color)
      Description copied from interface: Tooltippable
      Set the top border color of the theme
      Specified by:
      setTopBorderColor in interface Tooltippable
    • setBottomBorderColor

      public void setBottomBorderColor(int color)
      Description copied from interface: Tooltippable
      Set the bottom border color of the theme
      Specified by:
      setBottomBorderColor in interface Tooltippable
    • getWorldspace

      public boolean getWorldspace()
      Description copied from interface: Tooltippable
      Whether the tooltip should be rendered in worldspace or not
      Specified by:
      getWorldspace in interface Tooltippable
      Returns:
      true if the tooltip should be rendered in worldspace, false if it should be rendered in screenspace
    • getTimeline

      public TooltipTimeline getTimeline()
      Description copied from interface: Tooltippable
      Obtain the timeline for the tooltip
      Specified by:
      getTimeline in interface Tooltippable
      Returns:
      the timeline
    • getStack

      public net.minecraft.world.item.ItemStack getStack()
      Description copied from interface: Tooltippable
      The stack for the tooltip to take components from
      Specified by:
      getStack in interface Tooltippable
      Returns:
      the stack
    • getTooltipWidth

      public int getTooltipWidth()
      Description copied from interface: Tooltippable
      Increase the tooltip width
      Specified by:
      getTooltipWidth in interface Tooltippable
      Returns:
      the bonus width
    • getTooltipHeight

      public int getTooltipHeight()
      Description copied from interface: Tooltippable
      Increase the tooltip height
      Specified by:
      getTooltipHeight in interface Tooltippable
      Returns:
      the bonus height
    • getTooltipXOffset

      public int getTooltipXOffset()
      Description copied from interface: Tooltippable
      Get the x offset for the tooltip
      Specified by:
      getTooltipXOffset in interface Tooltippable
      Returns:
    • getTooltipYOffset

      public int getTooltipYOffset()
      Description copied from interface: Tooltippable
      Get the y offset for the tooltip
      Specified by:
      getTooltipYOffset in interface Tooltippable
      Returns:
    • getItems

      public List<VeilUIItemTooltipDataHolder> getItems()
      Description copied from interface: Tooltippable
      Get the items to render in the tooltip and data about them
      Specified by:
      getItems in interface Tooltippable
      Returns:
      the items
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag $$0, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    • loadAdditional

      public void loadAdditional(net.minecraft.nbt.CompoundTag $$0, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)