Class ResourcePackSendS2CPacket

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

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

    • MAX_HASH_LENGTH

      public static final int MAX_HASH_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lxe;a:I
      intermediary field_33340 Lnet/minecraft/class_2720;field_33340:I
      named MAX_HASH_LENGTH Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;MAX_HASH_LENGTH:I
    • url

      private final String url
      Mappings:
      Namespace Name Mixin selector
      official b Lxe;b:Ljava/lang/String;
      intermediary field_12427 Lnet/minecraft/class_2720;field_12427:Ljava/lang/String;
      named url Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;url:Ljava/lang/String;
    • hash

      private final String hash
      Mappings:
      Namespace Name Mixin selector
      official c Lxe;c:Ljava/lang/String;
      intermediary field_12428 Lnet/minecraft/class_2720;field_12428:Ljava/lang/String;
      named hash Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;hash:Ljava/lang/String;
    • required

      private final boolean required
      Mappings:
      Namespace Name Mixin selector
      official d Lxe;d:Z
      intermediary field_27844 Lnet/minecraft/class_2720;field_27844:Z
      named required Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;required:Z
    • prompt

      @Nullable private final @Nullable Text prompt
      Mappings:
      Namespace Name Mixin selector
      official e Lxe;e:Lsw;
      intermediary field_33541 Lnet/minecraft/class_2720;field_33541:Lnet/minecraft/class_2561;
      named prompt Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;prompt:Lnet/minecraft/text/Text;
  • Constructor Details

    • ResourcePackSendS2CPacket

      public ResourcePackSendS2CPacket(String url, String hash, boolean required, @Nullable @Nullable Text prompt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxe;<init>(Ljava/lang/String;Ljava/lang/String;ZLsw;)V
      intermediary <init> Lnet/minecraft/class_2720;<init>(Ljava/lang/String;Ljava/lang/String;ZLnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;<init>(Ljava/lang/String;Ljava/lang/String;ZLnet/minecraft/text/Text;)V
    • ResourcePackSendS2CPacket

      public ResourcePackSendS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxe;<init>(Lsf;)V
      intermediary <init> Lnet/minecraft/class_2720;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;<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 Luo;a(Lsf;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lxe;a(Lur;)V
      intermediary method_11774 Lnet/minecraft/class_2720;method_11774(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getURL

      public String getURL()
      Mappings:
      Namespace Name Mixin selector
      official a Lxe;a()Ljava/lang/String;
      intermediary method_11772 Lnet/minecraft/class_2720;method_11772()Ljava/lang/String;
      named getURL Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;getURL()Ljava/lang/String;
    • getSHA1

      public String getSHA1()
      Mappings:
      Namespace Name Mixin selector
      official c Lxe;c()Ljava/lang/String;
      intermediary method_11773 Lnet/minecraft/class_2720;method_11773()Ljava/lang/String;
      named getSHA1 Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;getSHA1()Ljava/lang/String;
    • isRequired

      public boolean isRequired()
      Mappings:
      Namespace Name Mixin selector
      official d Lxe;d()Z
      intermediary method_32307 Lnet/minecraft/class_2720;method_32307()Z
      named isRequired Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;isRequired()Z
    • getPrompt

      @Nullable public @Nullable Text getPrompt()
      Mappings:
      Namespace Name Mixin selector
      official e Lxe;e()Lsw;
      intermediary method_36340 Lnet/minecraft/class_2720;method_36340()Lnet/minecraft/class_2561;
      named getPrompt Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;getPrompt()Lnet/minecraft/text/Text;