Class TextStencilElement
java.lang.Object
com.simibubi.create.foundation.gui.element.RenderElement
com.simibubi.create.foundation.gui.element.StencilElement
com.simibubi.create.foundation.gui.element.DelegatedStencilElement
com.simibubi.create.foundation.gui.element.TextStencilElement
- All Implemented Interfaces:
ScreenElement
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.foundation.gui.element.DelegatedStencilElement
DelegatedStencilElement.ElementRendererNested classes/interfaces inherited from class com.simibubi.create.foundation.gui.element.RenderElement
RenderElement.SimpleRenderElement -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected net.minecraft.network.chat.MutableComponentprotected net.minecraft.client.gui.FontFields inherited from class com.simibubi.create.foundation.gui.element.DelegatedStencilElement
DEFAULT_ELEMENT, element, EMPTY_RENDERER, stencil -
Constructor Summary
ConstructorsConstructorDescriptionTextStencilElement(net.minecraft.client.gui.Font font) TextStencilElement(net.minecraft.client.gui.Font font, String text) TextStencilElement(net.minecraft.client.gui.Font font, net.minecraft.network.chat.MutableComponent component) -
Method Summary
Modifier and TypeMethodDescriptioncentered(boolean vertical, boolean horizontal) net.minecraft.network.chat.MutableComponentprotected voidrenderElement(com.mojang.blaze3d.vertex.PoseStack ms) protected voidrenderStencil(com.mojang.blaze3d.vertex.PoseStack ms) withText(net.minecraft.network.chat.MutableComponent component) Methods inherited from class com.simibubi.create.foundation.gui.element.DelegatedStencilElement
withElementRenderer, withStencilRendererMethods inherited from class com.simibubi.create.foundation.gui.element.StencilElement
cleanUp, prepareElement, prepareStencil, render, transform
-
Field Details
-
font
protected net.minecraft.client.gui.Font font -
component
protected net.minecraft.network.chat.MutableComponent component -
centerVertically
protected boolean centerVertically -
centerHorizontally
protected boolean centerHorizontally
-
-
Constructor Details
-
TextStencilElement
public TextStencilElement(net.minecraft.client.gui.Font font) -
TextStencilElement
-
TextStencilElement
public TextStencilElement(net.minecraft.client.gui.Font font, net.minecraft.network.chat.MutableComponent component)
-
-
Method Details
-
withText
-
withText
-
centered
-
renderStencil
protected void renderStencil(com.mojang.blaze3d.vertex.PoseStack ms) - Overrides:
renderStencilin classDelegatedStencilElement
-
renderElement
protected void renderElement(com.mojang.blaze3d.vertex.PoseStack ms) - Overrides:
renderElementin classDelegatedStencilElement
-
getComponent
public net.minecraft.network.chat.MutableComponent getComponent()
-