类 RenderTooltipEvent.Background
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderTooltipEvent
net.minecraftforge.client.event.RenderTooltipEvent.Background
- 封闭类:
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.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.RenderTooltipEvent
RenderTooltipEvent.Background, RenderTooltipEvent.GatherComponents, RenderTooltipEvent.Pre
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段从类继承的字段 net.minecraftforge.client.event.RenderTooltipEvent
components, font, graphics, itemStack, x, y
-
构造器概要
构造器构造器说明Background
(@NotNull ItemStack stack, GuiGraphics graphics, int x, int y, @NotNull Font fr, @NotNull List<ClientTooltipComponent> components, @Nullable ResourceLocation background) -
方法概要
修饰符和类型方法说明void
setBackground
(ResourceLocation background) Sets the new prefix for the background texture从类继承的方法 net.minecraftforge.client.event.RenderTooltipEvent
getComponents, getFont, getGraphics, getItemStack, getX, getY
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
originalBackground
-
background
-
-
构造器详细资料
-
Background
@Internal public Background(@NotNull @NotNull ItemStack stack, GuiGraphics graphics, int x, int y, @NotNull @NotNull Font fr, @NotNull @NotNull List<ClientTooltipComponent> components, @Nullable @Nullable ResourceLocation background)
-
-
方法详细资料
-
setBackground
Sets the new prefix for the background texture -
getBackground
- 返回:
- the potentially modified background's prefix, can be null for default
-
getOriginalBackground
- 返回:
- the original tooltip background's prefix, can be null for default
-