Class WorldEventS2CPacket

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

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

    • eventId

      private final int eventId
      Mappings:
      Namespace Name Mixin selector
      official a Lwr;a:I
      intermediary field_12241 Lnet/minecraft/class_2673;field_12241:I
      named eventId Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;eventId:I
    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official b Lwr;b:Lgt;
      intermediary field_12242 Lnet/minecraft/class_2673;field_12242:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;pos:Lnet/minecraft/util/math/BlockPos;
    • data

      private final int data
      Mappings:
      Namespace Name Mixin selector
      official c Lwr;c:I
      intermediary field_12239 Lnet/minecraft/class_2673;field_12239:I
      named data Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;data:I
    • global

      private final boolean global
      Mappings:
      Namespace Name Mixin selector
      official d Lwr;d:Z
      intermediary field_12240 Lnet/minecraft/class_2673;field_12240:Z
      named global Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;global:Z
  • Constructor Details

    • WorldEventS2CPacket

      public WorldEventS2CPacket(int eventId, BlockPos pos, int data, boolean global)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwr;<init>(ILgt;IZ)V
      intermediary <init> Lnet/minecraft/class_2673;<init>(ILnet/minecraft/class_2338;IZ)V
      named <init> Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;<init>(ILnet/minecraft/util/math/BlockPos;IZ)V
    • WorldEventS2CPacket

      public WorldEventS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwr;<init>(Lss;)V
      intermediary <init> Lnet/minecraft/class_2673;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;<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 Lvb;a(Lss;)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 Lwr;a(Lve;)V
      intermediary method_11535 Lnet/minecraft/class_2673;method_11535(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • isGlobal

      public boolean isGlobal()
      Mappings:
      Namespace Name Mixin selector
      official a Lwr;a()Z
      intermediary method_11533 Lnet/minecraft/class_2673;method_11533()Z
      named isGlobal Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;isGlobal()Z
    • getEventId

      public int getEventId()
      Mappings:
      Namespace Name Mixin selector
      official c Lwr;c()I
      intermediary method_11532 Lnet/minecraft/class_2673;method_11532()I
      named getEventId Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;getEventId()I
    • getData

      public int getData()
      Mappings:
      Namespace Name Mixin selector
      official d Lwr;d()I
      intermediary method_11534 Lnet/minecraft/class_2673;method_11534()I
      named getData Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;getData()I
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official e Lwr;e()Lgt;
      intermediary method_11531 Lnet/minecraft/class_2673;method_11531()Lnet/minecraft/class_2338;
      named getPos Lnet/minecraft/network/packet/s2c/play/WorldEventS2CPacket;getPos()Lnet/minecraft/util/math/BlockPos;