Direct Known Subclasses:
ValueBox.IconValueBox, ValueBox.ItemValueBox, ValueBox.TextValueBox

public class ValueBox extends ChasingAABBOutline
  • Field Details

    • label

      protected net.minecraft.network.chat.Component label
    • sublabel

      protected net.minecraft.network.chat.Component sublabel
    • scrollTooltip

      protected net.minecraft.network.chat.Component scrollTooltip
    • labelOffset

      protected net.minecraft.world.phys.Vec3 labelOffset
    • passiveColor

      protected int passiveColor
    • highlightColor

      protected int highlightColor
    • isPassive

      public boolean isPassive
    • pos

      protected net.minecraft.core.BlockPos pos
    • transform

      protected ValueBoxTransform transform
    • blockState

      protected net.minecraft.world.level.block.state.BlockState blockState
  • Constructor Details

    • ValueBox

      public ValueBox(net.minecraft.network.chat.Component label, net.minecraft.world.phys.AABB bb, net.minecraft.core.BlockPos pos)
  • Method Details

    • transform

      public ValueBox transform(ValueBoxTransform transform)
    • offsetLabel

      public ValueBox offsetLabel(net.minecraft.world.phys.Vec3 offset)
    • subLabel

      public ValueBox subLabel(net.minecraft.network.chat.Component sublabel)
    • scrollTooltip

      public ValueBox scrollTooltip(net.minecraft.network.chat.Component scrollTip)
    • withColors

      public ValueBox withColors(int passive, int highlight)
    • passive

      public ValueBox passive(boolean passive)
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack ms, SuperRenderTypeBuffer buffer, float pt)
      Overrides:
      render in class ChasingAABBOutline
    • renderContents

      public void renderContents(com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer)
    • renderHoveringText

      protected void renderHoveringText(com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.network.chat.Component text)
    • renderHoveringText

      protected void renderHoveringText(com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.network.chat.Component text, int color, int shadowColor)