Class VarInts

java.lang.Object
net.minecraft.network.encoding.VarInts

public class VarInts extends Object
Mappings:
Namespace Name
official uw
intermediary net/minecraft/class_8703
named net/minecraft/network/encoding/VarInts
  • Field Details

    • MAX_BYTES

      private static final int MAX_BYTES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Luw;a:I
      intermediary field_45682 Lnet/minecraft/class_8703;field_45682:I
      named MAX_BYTES Lnet/minecraft/network/encoding/VarInts;MAX_BYTES:I
    • DATA_BITS_MASK

      private static final int DATA_BITS_MASK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Luw;b:I
      intermediary field_45683 Lnet/minecraft/class_8703;field_45683:I
      named DATA_BITS_MASK Lnet/minecraft/network/encoding/VarInts;DATA_BITS_MASK:I
    • MORE_BITS_MASK

      private static final int MORE_BITS_MASK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Luw;c:I
      intermediary field_45684 Lnet/minecraft/class_8703;field_45684:I
      named MORE_BITS_MASK Lnet/minecraft/network/encoding/VarInts;MORE_BITS_MASK:I
    • DATA_BITS_PER_BYTE

      private static final int DATA_BITS_PER_BYTE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Luw;d:I
      intermediary field_45685 Lnet/minecraft/class_8703;field_45685:I
      named DATA_BITS_PER_BYTE Lnet/minecraft/network/encoding/VarInts;DATA_BITS_PER_BYTE:I
  • Constructor Details

    • VarInts

      public VarInts()
  • Method Details

    • getSizeInBytes

      public static int getSizeInBytes(int i)
      Mappings:
      Namespace Name Mixin selector
      official a Luw;a(I)I
      intermediary method_53015 Lnet/minecraft/class_8703;method_53015(I)I
      named getSizeInBytes Lnet/minecraft/network/encoding/VarInts;getSizeInBytes(I)I
    • shouldContinueRead

      public static boolean shouldContinueRead(byte b)
      Mappings:
      Namespace Name Mixin selector
      official a Luw;a(B)Z
      intermediary method_53014 Lnet/minecraft/class_8703;method_53014(B)Z
      named shouldContinueRead Lnet/minecraft/network/encoding/VarInts;shouldContinueRead(B)Z
    • read

      public static int read(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Luw;a(Lio/netty/buffer/ByteBuf;)I
      intermediary method_53016 Lnet/minecraft/class_8703;method_53016(Lio/netty/buffer/ByteBuf;)I
      named read Lnet/minecraft/network/encoding/VarInts;read(Lio/netty/buffer/ByteBuf;)I
    • write

      public static ByteBuf write(ByteBuf buf, int i)
      Mappings:
      Namespace Name Mixin selector
      official a Luw;a(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
      intermediary method_53017 Lnet/minecraft/class_8703;method_53017(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
      named write Lnet/minecraft/network/encoding/VarInts;write(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;