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.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 final int
private final int
private final int
Fields inherited from class net.minecraftforge.client.event.RenderTooltipEvent
fr, lines, matrixStack, stack, x, y
-
Constructor Summary
ConstructorDescriptionColor
(ItemStack stack, List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int background, int borderStart, int borderEnd) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
void
setBackground
(int background) void
setBorderEnd
(int borderEnd) void
setBorderStart
(int borderStart) Methods inherited from class net.minecraftforge.client.event.RenderTooltipEvent
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 -
background
private int background -
borderStart
private int borderStart -
borderEnd
private int borderEnd
-
-
Constructor Details
-
Color
public Color(@Nonnull ItemStack stack, @Nonnull List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, @Nonnull FontRenderer fr, int background, int borderStart, int borderEnd)
-
-
Method Details
-
getBackground
public int getBackground() -
setBackground
public void setBackground(int background) -
getBorderStart
public int getBorderStart() -
setBorderStart
public void setBorderStart(int borderStart) -
getBorderEnd
public int getBorderEnd() -
setBorderEnd
public void setBorderEnd(int borderEnd) -
getOriginalBackground
public int getOriginalBackground() -
getOriginalBorderStart
public int getOriginalBorderStart() -
getOriginalBorderEnd
public int getOriginalBorderEnd()
-