Class NativeUiRenderer
java.lang.Object
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiRenderer
- All Implemented Interfaces:
NativeUiLayout.Metrics
Shared accepted-pack text, image and intrinsic metrics, independent of screen authority.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static intcolor(NativeUiScene.Node node, float alpha) constrained(NativeUiScene.Node node, float width) voiddraw(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiPresentation.Draw draw, NativeUiAnimations animations) intrinsic(NativeUiScene.Node node) voidlabel(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiLayout.Box box, float alpha) voidlabel(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiLayout.Box box, float alpha, net.minecraft.network.chat.Component text) voidportrait(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiLayout.Box box, float mouseX, float mouseY, float partialTick, float alpha) voidprepare(NativeUiScene.Node root) voidreset()voidretain(List<NativeUiScene.Node> roots) net.minecraft.network.chat.Componentstyled(NativeUiScene.Node node, net.minecraft.network.chat.Component text) net.minecraft.network.chat.Componenttext(NativeUiScene.Node node)
-
Constructor Details
-
NativeUiRenderer
-
-
Method Details
-
reset
public void reset() -
retain
-
close
public void close() -
prepare
-
portrait
public void portrait(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiLayout.Box box, float mouseX, float mouseY, float partialTick, float alpha) -
constrained
- Specified by:
constrainedin interfaceNativeUiLayout.Metrics
-
draw
public void draw(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiPresentation.Draw draw, NativeUiAnimations animations) -
intrinsic
- Specified by:
intrinsicin interfaceNativeUiLayout.Metrics
-
label
public void label(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiLayout.Box box, float alpha) -
label
public void label(net.minecraft.client.gui.GuiGraphicsExtractor graphics, NativeUiLayout.Box box, float alpha, net.minecraft.network.chat.Component text) -
text
-
styled
public net.minecraft.network.chat.Component styled(NativeUiScene.Node node, net.minecraft.network.chat.Component text) -
color
-