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 rg
intermediary net/minecraft/class_2720
named net/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket
  • Field Details

    • url

      private String url
      Mappings:
      Namespace Name Mixin selector
      official a Lrg;a: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 String hash
      Mappings:
      Namespace Name Mixin selector
      official b Lrg;b: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 boolean required
      Mappings:
      Namespace Name Mixin selector
      official c Lrg;c:Z
      intermediary field_27844 Lnet/minecraft/class_2720;field_27844:Z
      named required Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;required:Z
  • Constructor Details

    • ResourcePackSendS2CPacket

      public ResourcePackSendS2CPacket()
    • ResourcePackSendS2CPacket

      public ResourcePackSendS2CPacket​(String url, String hash, boolean required)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrg;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
      intermediary <init> Lnet/minecraft/class_2720;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
      named <init> Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;<init>(Ljava/lang/String;Ljava/lang/String;Z)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
    • apply

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

      @Environment(CLIENT) public String getURL()
      Mappings:
      Namespace Name Mixin selector
      official b Lrg;b()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

      @Environment(CLIENT) public String getSHA1()
      Mappings:
      Namespace Name Mixin selector
      official c Lrg;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

      @Environment(CLIENT) public boolean isRequired()
      Mappings:
      Namespace Name Mixin selector
      official d Lrg;d()Z
      intermediary method_32307 Lnet/minecraft/class_2720;method_32307()Z
      named isRequired Lnet/minecraft/network/packet/s2c/play/ResourcePackSendS2CPacket;isRequired()Z