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 fjw
  • 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 Lfjw;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 Lfjw;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 Lfjw;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 Lfjw;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 Lfjw;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 Lfjw;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> Lfjv;<init>(Lfhr;Lblu;)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 Lfjv;d(Lfht;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 Lfjw;a(Lfht;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 Lfjw;a(Lfht;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 Lfjv;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 Lfjw;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 Lfjv;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 Lfjw;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 Lfjv;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 Lfjw;e(D)D