类 RenderTooltipEvent.Background

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderTooltipEvent
net.minecraftforge.client.event.RenderTooltipEvent.Background
封闭类:
RenderTooltipEvent

public static class RenderTooltipEvent.Background extends RenderTooltipEvent
Fired when the tooltip background prefix is determined. This can be used to modify the textures to be used for the tooltip background.

This event is not cancellable, and does not have a result.

This event is fired on the main Forge event bus, only on the logical client.

  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • setBackground

      public void setBackground(ResourceLocation background)
      Sets the new prefix for the background texture
    • getBackground

      public ResourceLocation getBackground()
      返回:
      the potentially modified background's prefix, can be null for default
    • getOriginalBackground

      public ResourceLocation getOriginalBackground()
      返回:
      the original tooltip background's prefix, can be null for default