Class BlockEventS2CPacket

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

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

    • pos

      private BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official a Lpp;a:Lfx;
      intermediary field_12044 Lnet/minecraft/class_2623;field_12044:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;pos:Lnet/minecraft/util/math/BlockPos;
    • type

      private int type
      Mappings:
      Namespace Name Mixin selector
      official b Lpp;b:I
      intermediary field_12042 Lnet/minecraft/class_2623;field_12042:I
      named type Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;type:I
    • data

      private int data
      Mappings:
      Namespace Name Mixin selector
      official c Lpp;c:I
      intermediary field_12041 Lnet/minecraft/class_2623;field_12041:I
      named data Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;data:I
    • block

      private Block block
      Mappings:
      Namespace Name Mixin selector
      official d Lpp;d:Lbwu;
      intermediary field_12043 Lnet/minecraft/class_2623;field_12043:Lnet/minecraft/class_2248;
      named block Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;block:Lnet/minecraft/block/Block;
  • Constructor Details

    • BlockEventS2CPacket

      public BlockEventS2CPacket()
    • BlockEventS2CPacket

      public BlockEventS2CPacket​(BlockPos pos, Block block, int type, int data)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lpp;<init>(Lfx;Lbwu;II)V
      intermediary <init> Lnet/minecraft/class_2623;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;II)V
      named <init> Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;II)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 Lpp;a(Lpd;)V
      intermediary method_11297 Lnet/minecraft/class_2623;method_11297(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getPos

      @Environment(CLIENT) public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official b Lpp;b()Lfx;
      intermediary method_11298 Lnet/minecraft/class_2623;method_11298()Lnet/minecraft/class_2338;
      named getPos Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;getPos()Lnet/minecraft/util/math/BlockPos;
    • getType

      @Environment(CLIENT) public int getType()
      Mappings:
      Namespace Name Mixin selector
      official c Lpp;c()I
      intermediary method_11294 Lnet/minecraft/class_2623;method_11294()I
      named getType Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;getType()I
    • getData

      @Environment(CLIENT) public int getData()
      Mappings:
      Namespace Name Mixin selector
      official d Lpp;d()I
      intermediary method_11296 Lnet/minecraft/class_2623;method_11296()I
      named getData Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;getData()I
    • getBlock

      @Environment(CLIENT) public Block getBlock()
      Mappings:
      Namespace Name Mixin selector
      official e Lpp;e()Lbwu;
      intermediary method_11295 Lnet/minecraft/class_2623;method_11295()Lnet/minecraft/class_2248;
      named getBlock Lnet/minecraft/network/packet/s2c/play/BlockEventS2CPacket;getBlock()Lnet/minecraft/block/Block;