Class CommandTreeS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.CommandTreeS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class CommandTreeS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official th
intermediary net/minecraft/class_2641
named net/minecraft/network/packet/s2c/play/CommandTreeS2CPacket
  • Field Details

    • field_33317

      private static final byte field_33317
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a:B
      intermediary field_33317 Lnet/minecraft/class_2641;field_33317:B
      named field_33317 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;field_33317:B
    • field_33318

      private static final byte field_33318
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lth;b:B
      intermediary field_33318 Lnet/minecraft/class_2641;field_33318:B
      named field_33318 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;field_33318:B
    • field_33319

      private static final byte field_33319
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lth;c:B
      intermediary field_33319 Lnet/minecraft/class_2641;field_33319:B
      named field_33319 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;field_33319:B
    • field_33320

      private static final byte field_33320
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lth;d:B
      intermediary field_33320 Lnet/minecraft/class_2641;field_33320:B
      named field_33320 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;field_33320:B
    • field_33321

      private static final byte field_33321
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lth;e:B
      intermediary field_33321 Lnet/minecraft/class_2641;field_33321:B
      named field_33321 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;field_33321:B
    • field_33322

      private static final byte field_33322
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lth;f:B
      intermediary field_33322 Lnet/minecraft/class_2641;field_33322:B
      named field_33322 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;field_33322:B
    • field_33323

      private static final byte field_33323
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lth;g:B
      intermediary field_33323 Lnet/minecraft/class_2641;field_33323:B
      named field_33323 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;field_33323:B
    • rootSize

      private final int rootSize
      Mappings:
      Namespace Name Mixin selector
      official h Lth;h:I
      intermediary field_38038 Lnet/minecraft/class_2641;field_38038:I
      named rootSize Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;rootSize:I
    • nodes

      Mappings:
      Namespace Name Mixin selector
      official i Lth;i:Ljava/util/List;
      intermediary field_38039 Lnet/minecraft/class_2641;field_38039:Ljava/util/List;
      named nodes Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;nodes:Ljava/util/List;
  • Constructor Details

    • CommandTreeS2CPacket

      public CommandTreeS2CPacket(com.mojang.brigadier.tree.RootCommandNode<CommandSource> rootNode)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lth;<init>(Lcom/mojang/brigadier/tree/RootCommandNode;)V
      intermediary <init> Lnet/minecraft/class_2641;<init>(Lcom/mojang/brigadier/tree/RootCommandNode;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;<init>(Lcom/mojang/brigadier/tree/RootCommandNode;)V
    • CommandTreeS2CPacket

      public CommandTreeS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lth;<init>(Lqx;)V
      intermediary <init> Lnet/minecraft/class_2641;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lso;a(Lqx;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • validate

      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Ljava/util/List;Ljava/util/function/BiPredicate;)V
      intermediary method_42067 Lnet/minecraft/class_2641;method_42067(Ljava/util/List;Ljava/util/function/BiPredicate;)V
      named validate Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;validate(Ljava/util/List;Ljava/util/function/BiPredicate;)V
    • validate

      private static void validate(List<CommandTreeS2CPacket.CommandNodeData> nodeDatas)
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Ljava/util/List;)V
      intermediary method_30946 Lnet/minecraft/class_2641;method_30946(Ljava/util/List;)V
      named validate Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;validate(Ljava/util/List;)V
    • traverse

      private static Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> traverse(com.mojang.brigadier.tree.RootCommandNode<CommandSource> commandTree)
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Lcom/mojang/brigadier/tree/RootCommandNode;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary method_30944 Lnet/minecraft/class_2641;method_30944(Lcom/mojang/brigadier/tree/RootCommandNode;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      named traverse Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;traverse(Lcom/mojang/brigadier/tree/RootCommandNode;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
    • collectNodes

      private static List<CommandTreeS2CPacket.CommandNodeData> collectNodes(Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> nodes)
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Ljava/util/List;
      intermediary method_30945 Lnet/minecraft/class_2641;method_30945(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Ljava/util/List;
      named collectNodes Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;collectNodes(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Ljava/util/List;
    • readCommandNode

      private static CommandTreeS2CPacket.CommandNodeData readCommandNode(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lth;b(Lqx;)Lth$b;
      intermediary method_11405 Lnet/minecraft/class_2641;method_11405(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2641$class_2642;
      named readCommandNode Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;readCommandNode(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;
    • readArgumentBuilder

      @Nullable private static @Nullable CommandTreeS2CPacket.SuggestableNode readArgumentBuilder(PacketByteBuf buf, byte flags)
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Lqx;B)Lth$e;
      intermediary method_11402 Lnet/minecraft/class_2641;method_11402(Lnet/minecraft/class_2540;B)Lnet/minecraft/class_2641$class_7235;
      named readArgumentBuilder Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;readArgumentBuilder(Lnet/minecraft/network/PacketByteBuf;B)Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$SuggestableNode;
    • createNodeData

      private static CommandTreeS2CPacket.CommandNodeData createNodeData(com.mojang.brigadier.tree.CommandNode<CommandSource> node, Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> nodes)
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Lcom/mojang/brigadier/tree/CommandNode;Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lth$b;
      intermediary method_11401 Lnet/minecraft/class_2641;method_11401(Lcom/mojang/brigadier/tree/CommandNode;Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lnet/minecraft/class_2641$class_2642;
      named createNodeData Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;createNodeData(Lcom/mojang/brigadier/tree/CommandNode;Lit/unimi/dsi/fastutil/objects/Object2IntMap;)Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Lsr;)V
      intermediary method_11404 Lnet/minecraft/class_2641;method_11404(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getCommandTree

      public com.mojang.brigadier.tree.RootCommandNode<CommandSource> getCommandTree(CommandRegistryAccess commandRegistryAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Ldl;)Lcom/mojang/brigadier/tree/RootCommandNode;
      intermediary method_11403 Lnet/minecraft/class_2641;method_11403(Lnet/minecraft/class_7157;)Lcom/mojang/brigadier/tree/RootCommandNode;
      named getCommandTree Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;getCommandTree(Lnet/minecraft/command/CommandRegistryAccess;)Lcom/mojang/brigadier/tree/RootCommandNode;