Package net.minecraftforge.client.event
Class RenderTooltipEvent.Color
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderTooltipEvent
net.minecraftforge.client.event.RenderTooltipEvent.Color
- Enclosing class:
- RenderTooltipEvent
This event is fired when the colours for the tooltip background are determined.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.RenderTooltipEvent
RenderTooltipEvent.Color, RenderTooltipEvent.GatherComponents, RenderTooltipEvent.Post, RenderTooltipEvent.PostBackground, RenderTooltipEvent.PostText, RenderTooltipEvent.Pre
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private int
private int
private int
private int
private int
Fields inherited from class net.minecraftforge.client.event.RenderTooltipEvent
components, fr, lines, matrixStack, stack, x, y
-
Constructor Summary
ConstructorDescriptionColor(ItemStack stack, PoseStack matrixStack, int x, int y, Font fr, int background, int borderStart, int borderEnd, List<ClientTooltipComponent> components)
Color(ItemStack stack, List<? extends FormattedText> textLines, PoseStack matrixStack, int x, int y, Font fr, int background, int borderStart, int borderEnd)
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated, for removal: This API element is subject to removal in a future version.int
int
int
int
int
Deprecated, for removal: This API element is subject to removal in a future version.int
int
int
int
void
setBackground(int background)
void
setBackgroundEnd(int backgroundEnd)
void
setBackgroundStart(int backgroundStart)
void
setBorderEnd(int borderEnd)
void
setBorderStart(int borderStart)
Methods inherited from class net.minecraftforge.client.event.RenderTooltipEvent
getComponents, getFontRenderer, getLines, getMatrixStack, getStack, getX, getY
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
originalBackground
private final int originalBackground -
originalBorderStart
private final int originalBorderStart -
originalBorderEnd
private final int originalBorderEnd -
backgroundStart
private int backgroundStart -
backgroundEnd
private int backgroundEnd -
borderStart
private int borderStart -
borderEnd
private int borderEnd
-
-
Constructor Details
-
Color
@Deprecated(since="1.18", forRemoval=true) public Color(@Nonnull ItemStack stack, @Nonnull List<? extends FormattedText> textLines, PoseStack matrixStack, int x, int y, @Nonnull Font fr, int background, int borderStart, int borderEnd)Deprecated, for removal: This API element is subject to removal in a future version. -
Color
public Color(@Nonnull ItemStack stack, PoseStack matrixStack, int x, int y, @Nonnull Font fr, int background, int borderStart, int borderEnd, @Nonnull List<ClientTooltipComponent> components)
-
-
Method Details
-
getBackground
Deprecated, for removal: This API element is subject to removal in a future version. -
getBackgroundStart
public int getBackgroundStart() -
getBackgroundEnd
public int getBackgroundEnd() -
setBackground
public void setBackground(int background) -
setBackgroundStart
public void setBackgroundStart(int backgroundStart) -
setBackgroundEnd
public void setBackgroundEnd(int backgroundEnd) -
getBorderStart
public int getBorderStart() -
setBorderStart
public void setBorderStart(int borderStart) -
getBorderEnd
public int getBorderEnd() -
setBorderEnd
public void setBorderEnd(int borderEnd) -
getOriginalBackground
Deprecated, for removal: This API element is subject to removal in a future version. -
getOriginalBackgroundStart
public int getOriginalBackgroundStart() -
getOriginalBackgroundEnd
public int getOriginalBackgroundEnd() -
getOriginalBorderStart
public int getOriginalBorderStart() -
getOriginalBorderEnd
public int getOriginalBorderEnd()
-
getBackgroundStart()
andgetBackgroundEnd()