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 pv
intermediary net/minecraft/class_2641
named net/minecraft/network/packet/s2c/play/CommandTreeS2CPacket
  • Field Details

    • commandTree

      private com.mojang.brigadier.tree.RootCommandNode<CommandSource> commandTree
      Mappings:
      Namespace Name Mixin selector
      official a Lpv;a:Lcom/mojang/brigadier/tree/RootCommandNode;
      intermediary field_12123 Lnet/minecraft/class_2641;field_12123:Lcom/mojang/brigadier/tree/RootCommandNode;
      named commandTree Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;commandTree:Lcom/mojang/brigadier/tree/RootCommandNode;
  • Constructor Details

    • CommandTreeS2CPacket

      public CommandTreeS2CPacket()
    • CommandTreeS2CPacket

      public CommandTreeS2CPacket​(com.mojang.brigadier.tree.RootCommandNode<CommandSource> commandTree)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lpv;<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
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)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
    • method_30946

      private static void method_30946​(CommandTreeS2CPacket.CommandNodeData[] commandNodeData)
      Mappings:
      Namespace Name Mixin selector
      official a Lpv;a([Lpv$a;)V
      intermediary method_30946 Lnet/minecraft/class_2641;method_30946([Lnet/minecraft/class_2641$class_2642;)V
      named method_30946 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;method_30946([Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;)V
    • method_30944

      private static Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> method_30944​(com.mojang.brigadier.tree.RootCommandNode<CommandSource> rootCommandNode)
      Mappings:
      Namespace Name Mixin selector
      official a Lpv;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 method_30944 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;method_30944(Lcom/mojang/brigadier/tree/RootCommandNode;)Lit/unimi/dsi/fastutil/objects/Object2IntMap;
    • method_30945

      private static com.mojang.brigadier.tree.CommandNode<CommandSource>[] method_30945​(Object2IntMap<com.mojang.brigadier.tree.CommandNode<CommandSource>> object2IntMap)
      Mappings:
      Namespace Name Mixin selector
      official a Lpv;a(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)[Lcom/mojang/brigadier/tree/CommandNode;
      intermediary method_30945 Lnet/minecraft/class_2641;method_30945(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)[Lcom/mojang/brigadier/tree/CommandNode;
      named method_30945 Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;method_30945(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)[Lcom/mojang/brigadier/tree/CommandNode;
    • readCommandNode

      private static CommandTreeS2CPacket.CommandNodeData readCommandNode​(PacketByteBuf packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official c Lpv;c(Lnw;)Lpv$a;
      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 com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,​?> readArgumentBuilder​(PacketByteBuf packetByteBuf, byte byte2)
      Mappings:
      Namespace Name Mixin selector
      official a Lpv;a(Lnw;B)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      intermediary method_11402 Lnet/minecraft/class_2641;method_11402(Lnet/minecraft/class_2540;B)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      named readArgumentBuilder Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;readArgumentBuilder(Lnet/minecraft/network/PacketByteBuf;B)Lcom/mojang/brigadier/builder/ArgumentBuilder;
    • writeNode

      private static void writeNode​(PacketByteBuf packetByteBuf, com.mojang.brigadier.tree.CommandNode<CommandSource> commandNode, Map<com.mojang.brigadier.tree.CommandNode<CommandSource>,​Integer> map)
      Mappings:
      Namespace Name Mixin selector
      official a Lpv;a(Lnw;Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Map;)V
      intermediary method_11401 Lnet/minecraft/class_2641;method_11401(Lnet/minecraft/class_2540;Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Map;)V
      named writeNode Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;writeNode(Lnet/minecraft/network/PacketByteBuf;Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Map;)V
    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lpv;a(Lpd;)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

      @Environment(CLIENT) public com.mojang.brigadier.tree.RootCommandNode<CommandSource> getCommandTree()
      Mappings:
      Namespace Name Mixin selector
      official b Lpv;b()Lcom/mojang/brigadier/tree/RootCommandNode;
      intermediary method_11403 Lnet/minecraft/class_2641;method_11403()Lcom/mojang/brigadier/tree/RootCommandNode;
      named getCommandTree Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket;getCommandTree()Lcom/mojang/brigadier/tree/RootCommandNode;