Class PacketSizeChart

java.lang.Object
net.minecraft.client.gui.hud.debug.DebugChart
net.minecraft.client.gui.hud.debug.PacketSizeChart

@Environment(CLIENT) public class PacketSizeChart extends DebugChart
Mappings:
Namespace Name
named net/minecraft/client/gui/hud/debug/PacketSizeChart
intermediary net/minecraft/class_8756
official fiw
  • Field Details

    • field_45920

      private static final int field_45920
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_45920 Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;field_45920:I
      intermediary field_45920 Lnet/minecraft/class_8756;field_45920:I
      official f Lfiw;f:I
    • field_45921

      private static final int field_45921
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_45921 Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;field_45921:I
      intermediary field_45921 Lnet/minecraft/class_8756;field_45921:I
      official g Lfiw;g:I
    • field_45922

      private static final int field_45922
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_45922 Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;field_45922:I
      intermediary field_45922 Lnet/minecraft/class_8756;field_45922:I
      official h Lfiw;h:I
    • field_45923

      private static final int field_45923
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_45923 Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;field_45923:I
      intermediary field_45923 Lnet/minecraft/class_8756;field_45923:I
      official i Lfiw;i:I
    • field_45924

      private static final int field_45924
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_45924 Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;field_45924:I
      intermediary field_45924 Lnet/minecraft/class_8756;field_45924:I
      official j Lfiw;j:I
    • field_45925

      private static final int field_45925
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_45925 Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;field_45925:I
      intermediary field_45925 Lnet/minecraft/class_8756;field_45925:I
      official k Lfiw;k:I
  • Constructor Details

    • PacketSizeChart

      public PacketSizeChart(TextRenderer textRenderer, MultiValueDebugSampleLog log)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/hud/debug/DebugChart;<init>(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/util/profiler/log/MultiValueDebugSampleLog;)V
      intermediary <init> Lnet/minecraft/class_8755;<init>(Lnet/minecraft/class_327;Lnet/minecraft/class_9194;)V
      official <init> Lfiv;<init>(Lfgr;Lbma;)V
  • Method Details

    • renderThresholds

      protected void renderThresholds(DrawContext context, int x, int width, int height)
      Overrides:
      renderThresholds in class DebugChart
      Mappings:
      Namespace Name Mixin selector
      named renderThresholds Lnet/minecraft/client/gui/hud/debug/DebugChart;renderThresholds(Lnet/minecraft/client/gui/DrawContext;III)V
      intermediary method_53473 Lnet/minecraft/class_8755;method_53473(Lnet/minecraft/class_332;III)V
      official d Lfiv;d(Lfgt;III)V
    • drawSizeBar

      private void drawSizeBar(DrawContext context, int x, int width, int height, int bytes)
      Mappings:
      Namespace Name Mixin selector
      named drawSizeBar Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;drawSizeBar(Lnet/minecraft/client/gui/DrawContext;IIII)V
      intermediary method_53476 Lnet/minecraft/class_8756;method_53476(Lnet/minecraft/class_332;IIII)V
      official a Lfiw;a(Lfgt;IIII)V
    • drawSizeBar

      private void drawSizeBar(DrawContext context, int x, int width, int y, String label)
      Mappings:
      Namespace Name Mixin selector
      named drawSizeBar Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;drawSizeBar(Lnet/minecraft/client/gui/DrawContext;IIILjava/lang/String;)V
      intermediary method_53477 Lnet/minecraft/class_8756;method_53477(Lnet/minecraft/class_332;IIILjava/lang/String;)V
      official a Lfiw;a(Lfgt;IIILjava/lang/String;)V
    • format

      protected String format(double value)
      Specified by:
      format in class DebugChart
      Mappings:
      Namespace Name Mixin selector
      named format Lnet/minecraft/client/gui/hud/debug/DebugChart;format(D)Ljava/lang/String;
      intermediary method_53468 Lnet/minecraft/class_8755;method_53468(D)Ljava/lang/String;
      official a Lfiv;a(D)Ljava/lang/String;
    • formatBytesPerSecond

      private static String formatBytesPerSecond(double value)
      Mappings:
      Namespace Name Mixin selector
      named formatBytesPerSecond Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;formatBytesPerSecond(D)Ljava/lang/String;
      intermediary method_53478 Lnet/minecraft/class_8756;method_53478(D)Ljava/lang/String;
      official c Lfiw;c(D)Ljava/lang/String;
    • getHeight

      protected int getHeight(double value)
      Specified by:
      getHeight in class DebugChart
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/client/gui/hud/debug/DebugChart;getHeight(D)I
      intermediary method_53475 Lnet/minecraft/class_8755;method_53475(D)I
      official b Lfiv;b(D)I
    • calculateHeight

      private static int calculateHeight(double value)
      Mappings:
      Namespace Name Mixin selector
      named calculateHeight Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;calculateHeight(D)I
      intermediary method_53479 Lnet/minecraft/class_8756;method_53479(D)I
      official d Lfiw;d(D)I
    • getColor

      protected int getColor(long value)
      Specified by:
      getColor in class DebugChart
      Mappings:
      Namespace Name Mixin selector
      named getColor Lnet/minecraft/client/gui/hud/debug/DebugChart;getColor(J)I
      intermediary method_53471 Lnet/minecraft/class_8755;method_53471(J)I
      official a Lfiv;a(J)I
    • toBytesPerSecond

      private static double toBytesPerSecond(double bytesPerTick)
      Mappings:
      Namespace Name Mixin selector
      named toBytesPerSecond Lnet/minecraft/client/gui/hud/debug/PacketSizeChart;toBytesPerSecond(D)D
      intermediary method_53480 Lnet/minecraft/class_8756;method_53480(D)D
      official e Lfiw;e(D)D