Class PlayerActionResponseS2CPacket

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lpm;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_20320 Lnet/minecraft/class_4463;field_20320:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;LOGGER:Lorg/apache/logging/log4j/Logger;
    • pos

      private BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official c Lpm;c:Lfx;
      intermediary field_20321 Lnet/minecraft/class_4463;field_20321:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;pos:Lnet/minecraft/util/math/BlockPos;
    • state

      private BlockState state
      Mappings:
      Namespace Name Mixin selector
      official d Lpm;d:Lcht;
      intermediary field_20322 Lnet/minecraft/class_4463;field_20322:Lnet/minecraft/class_2680;
      named state Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;state:Lnet/minecraft/block/BlockState;
    • action

      Mappings:
      Namespace Name Mixin selector
      official a Lpm;a:Ltr$a;
      intermediary field_20319 Lnet/minecraft/class_4463;field_20319:Lnet/minecraft/class_2846$class_2847;
      named action Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;action:Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;
    • approved

      private boolean approved
      Mappings:
      Namespace Name Mixin selector
      official e Lpm;e:Z
      intermediary field_20323 Lnet/minecraft/class_4463;field_20323:Z
      named approved Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;approved:Z
  • Constructor Details

    • PlayerActionResponseS2CPacket

      public PlayerActionResponseS2CPacket()
    • PlayerActionResponseS2CPacket

      public PlayerActionResponseS2CPacket​(BlockPos pos, BlockState state, PlayerActionC2SPacket.Action action, boolean approved, String reason)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lpm;<init>(Lfx;Lcht;Ltr$a;ZLjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_4463;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2846$class_2847;ZLjava/lang/String;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;ZLjava/lang/String;)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 Lpm;a(Lpd;)V
      intermediary method_21708 Lnet/minecraft/class_4463;method_21708(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getBlockState

      @Environment(CLIENT) public BlockState getBlockState()
      Mappings:
      Namespace Name Mixin selector
      official b Lpm;b()Lcht;
      intermediary method_21709 Lnet/minecraft/class_4463;method_21709()Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;getBlockState()Lnet/minecraft/block/BlockState;
    • getBlockPos

      @Environment(CLIENT) public BlockPos getBlockPos()
      Mappings:
      Namespace Name Mixin selector
      official c Lpm;c()Lfx;
      intermediary method_21710 Lnet/minecraft/class_4463;method_21710()Lnet/minecraft/class_2338;
      named getBlockPos Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;getBlockPos()Lnet/minecraft/util/math/BlockPos;
    • isApproved

      @Environment(CLIENT) public boolean isApproved()
      Mappings:
      Namespace Name Mixin selector
      official d Lpm;d()Z
      intermediary method_21711 Lnet/minecraft/class_4463;method_21711()Z
      named isApproved Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;isApproved()Z
    • getAction

      Mappings:
      Namespace Name Mixin selector
      official e Lpm;e()Ltr$a;
      intermediary method_21712 Lnet/minecraft/class_4463;method_21712()Lnet/minecraft/class_2846$class_2847;
      named getAction Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;getAction()Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;