Class VarLongs

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

public class VarLongs extends Object
Mappings:
Namespace Name
official ux
intermediary net/minecraft/class_8704
named net/minecraft/network/encoding/VarLongs
  • Field Details

    • MAX_BYTES

      private static final int MAX_BYTES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lux;a:I
      intermediary field_45686 Lnet/minecraft/class_8704;field_45686:I
      named MAX_BYTES Lnet/minecraft/network/encoding/VarLongs;MAX_BYTES:I
    • DATA_BITS_MASK

      private static final int DATA_BITS_MASK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lux;b:I
      intermediary field_45687 Lnet/minecraft/class_8704;field_45687:I
      named DATA_BITS_MASK Lnet/minecraft/network/encoding/VarLongs;DATA_BITS_MASK:I
    • MORE_BITS_MASK

      private static final int MORE_BITS_MASK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lux;c:I
      intermediary field_45688 Lnet/minecraft/class_8704;field_45688:I
      named MORE_BITS_MASK Lnet/minecraft/network/encoding/VarLongs;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 Lux;d:I
      intermediary field_45689 Lnet/minecraft/class_8704;field_45689:I
      named DATA_BITS_PER_BYTE Lnet/minecraft/network/encoding/VarLongs;DATA_BITS_PER_BYTE:I
  • Constructor Details

    • VarLongs

      public VarLongs()
  • Method Details

    • getSizeInBytes

      public static int getSizeInBytes(long l)
      Mappings:
      Namespace Name Mixin selector
      official a Lux;a(J)I
      intermediary method_53019 Lnet/minecraft/class_8704;method_53019(J)I
      named getSizeInBytes Lnet/minecraft/network/encoding/VarLongs;getSizeInBytes(J)I
    • shouldContinueRead

      public static boolean shouldContinueRead(byte b)
      Mappings:
      Namespace Name Mixin selector
      official a Lux;a(B)Z
      intermediary method_53018 Lnet/minecraft/class_8704;method_53018(B)Z
      named shouldContinueRead Lnet/minecraft/network/encoding/VarLongs;shouldContinueRead(B)Z
    • read

      public static long read(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lux;a(Lio/netty/buffer/ByteBuf;)J
      intermediary method_53020 Lnet/minecraft/class_8704;method_53020(Lio/netty/buffer/ByteBuf;)J
      named read Lnet/minecraft/network/encoding/VarLongs;read(Lio/netty/buffer/ByteBuf;)J
    • write

      public static ByteBuf write(ByteBuf buf, long l)
      Mappings:
      Namespace Name Mixin selector
      official a Lux;a(Lio/netty/buffer/ByteBuf;J)Lio/netty/buffer/ByteBuf;
      intermediary method_53021 Lnet/minecraft/class_8704;method_53021(Lio/netty/buffer/ByteBuf;J)Lio/netty/buffer/ByteBuf;
      named write Lnet/minecraft/network/encoding/VarLongs;write(Lio/netty/buffer/ByteBuf;J)Lio/netty/buffer/ByteBuf;