public class ValueBox extends ChasingAABBOutline
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueBox.IconValueBox |
static class |
ValueBox.ItemValueBox |
static class |
ValueBox.TextValueBox |
Outline.OutlineParams| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.block.BlockState |
blockState |
protected int |
highlightColor |
boolean |
isPassive |
protected net.minecraft.util.text.ITextComponent |
label |
protected net.minecraft.util.math.vector.Vector3d |
labelOffset |
protected int |
passiveColor |
protected net.minecraft.util.math.BlockPos |
pos |
protected net.minecraft.util.text.ITextComponent |
scrollTooltip |
protected net.minecraft.util.text.ITextComponent |
sublabel |
protected ValueBoxTransform |
transform |
bbparams, transformNormals| Constructor and Description |
|---|
ValueBox(net.minecraft.util.text.ITextComponent label,
net.minecraft.util.math.AxisAlignedBB bb,
net.minecraft.util.math.BlockPos pos) |
| Modifier and Type | Method and Description |
|---|---|
ValueBox |
offsetLabel(net.minecraft.util.math.vector.Vector3d offset) |
ValueBox |
passive(boolean passive) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack ms,
SuperRenderTypeBuffer buffer,
float pt) |
void |
renderContents(com.mojang.blaze3d.matrix.MatrixStack ms,
net.minecraft.client.renderer.IRenderTypeBuffer buffer) |
protected void |
renderHoveringText(com.mojang.blaze3d.matrix.MatrixStack ms,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
net.minecraft.util.text.ITextComponent text) |
protected void |
renderHoveringText(com.mojang.blaze3d.matrix.MatrixStack ms,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
net.minecraft.util.text.ITextComponent text,
int color,
int shadowColor) |
ValueBox |
scrollTooltip(net.minecraft.util.text.ITextComponent scrollTip) |
ValueBox |
subLabel(net.minecraft.util.text.ITextComponent sublabel) |
ValueBox |
transform(ValueBoxTransform transform) |
ValueBox |
withColors(int passive,
int highlight) |
target, tickrenderBB, renderFace, setBoundsgetParams, putQuad, putQuadUV, putVertex, renderAACuboidLine, renderCuboidLineprotected net.minecraft.util.text.ITextComponent label
protected net.minecraft.util.text.ITextComponent sublabel
protected net.minecraft.util.text.ITextComponent scrollTooltip
protected net.minecraft.util.math.vector.Vector3d labelOffset
protected int passiveColor
protected int highlightColor
public boolean isPassive
protected net.minecraft.util.math.BlockPos pos
protected ValueBoxTransform transform
protected net.minecraft.block.BlockState blockState
public ValueBox(net.minecraft.util.text.ITextComponent label,
net.minecraft.util.math.AxisAlignedBB bb,
net.minecraft.util.math.BlockPos pos)
public ValueBox transform(ValueBoxTransform transform)
public ValueBox offsetLabel(net.minecraft.util.math.vector.Vector3d offset)
public ValueBox subLabel(net.minecraft.util.text.ITextComponent sublabel)
public ValueBox scrollTooltip(net.minecraft.util.text.ITextComponent scrollTip)
public ValueBox withColors(int passive, int highlight)
public ValueBox passive(boolean passive)
public void render(com.mojang.blaze3d.matrix.MatrixStack ms,
SuperRenderTypeBuffer buffer,
float pt)
render in class ChasingAABBOutlinepublic void renderContents(com.mojang.blaze3d.matrix.MatrixStack ms,
net.minecraft.client.renderer.IRenderTypeBuffer buffer)
protected void renderHoveringText(com.mojang.blaze3d.matrix.MatrixStack ms,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
net.minecraft.util.text.ITextComponent text)
protected void renderHoveringText(com.mojang.blaze3d.matrix.MatrixStack ms,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
net.minecraft.util.text.ITextComponent text,
int color,
int shadowColor)