Class BlockPlacementC2SPacket

java.lang.Object
net.minecraft.network.packet.c2s.play.BlockPlacementC2SPacket
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public class BlockPlacementC2SPacket
extends Object
implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
official ja
intermediary net/minecraft/class_1582
named net/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket
  • Field Details

    • UNKNOWN_POS

      private static final BlockPos UNKNOWN_POS
      Mappings:
      Namespace Name Mixin selector
      official a Lja;a:Lcj;
      intermediary field_6468 Lnet/minecraft/class_1582;field_6468:Lnet/minecraft/class_1372;
      named UNKNOWN_POS Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;UNKNOWN_POS:Lnet/minecraft/util/math/BlockPos;
    • pos

      private BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official b Lja;b:Lcj;
      intermediary field_6469 Lnet/minecraft/class_1582;field_6469:Lnet/minecraft/class_1372;
      named pos Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;pos:Lnet/minecraft/util/math/BlockPos;
    • directionId

      private int directionId
      Mappings:
      Namespace Name Mixin selector
      official c Lja;c:I
      intermediary field_6470 Lnet/minecraft/class_1582;field_6470:I
      named directionId Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;directionId:I
    • stack

      private ItemStack stack
      Mappings:
      Namespace Name Mixin selector
      official d Lja;d:Lzx;
      intermediary field_6471 Lnet/minecraft/class_1582;field_6471:Lnet/minecraft/class_2056;
      named stack Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;stack:Lnet/minecraft/item/ItemStack;
    • distanceX

      private float distanceX
      Mappings:
      Namespace Name Mixin selector
      official e Lja;e:F
      intermediary field_6472 Lnet/minecraft/class_1582;field_6472:F
      named distanceX Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;distanceX:F
    • distanceY

      private float distanceY
      Mappings:
      Namespace Name Mixin selector
      official f Lja;f:F
      intermediary field_6473 Lnet/minecraft/class_1582;field_6473:F
      named distanceY Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;distanceY:F
    • distanceZ

      private float distanceZ
      Mappings:
      Namespace Name Mixin selector
      official g Lja;g:F
      intermediary field_6474 Lnet/minecraft/class_1582;field_6474:F
      named distanceZ Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;distanceZ:F
  • Constructor Details

    • BlockPlacementC2SPacket

      public BlockPlacementC2SPacket()
    • BlockPlacementC2SPacket

      public BlockPlacementC2SPacket​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lja;<init>(Lzx;)V
      intermediary <init> Lnet/minecraft/class_1582;<init>(Lnet/minecraft/class_2056;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;<init>(Lnet/minecraft/item/ItemStack;)V
    • BlockPlacementC2SPacket

      public BlockPlacementC2SPacket​(BlockPos pos, int directionId, ItemStack stack, float distanceX, float distanceY, float distanceZ)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lja;<init>(Lcj;ILzx;FFF)V
      intermediary <init> Lnet/minecraft/class_1582;<init>(Lnet/minecraft/class_1372;ILnet/minecraft/class_2056;FFF)V
      named <init> Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;<init>(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/item/ItemStack;FFF)V
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ServerPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lff;a(Lem;)V
      intermediary method_5238 Lnet/minecraft/class_1457;method_5238(Lnet/minecraft/class_1435;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/util/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ServerPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lff;b(Lem;)V
      intermediary method_5240 Lnet/minecraft/class_1457;method_5240(Lnet/minecraft/class_1435;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/util/PacketByteBuf;)V
    • apply

      public void apply​(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lja;a(Lic;)V
      intermediary method_5820 Lnet/minecraft/class_1582;method_5820(Lnet/minecraft/class_1550;)V
      named apply Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official a Lja;a()Lcj;
      intermediary method_5819 Lnet/minecraft/class_1582;method_5819()Lnet/minecraft/class_1372;
      named getPos Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;getPos()Lnet/minecraft/util/math/BlockPos;
    • getDirectionId

      public int getDirectionId()
      Mappings:
      Namespace Name Mixin selector
      official b Lja;b()I
      intermediary method_5821 Lnet/minecraft/class_1582;method_5821()I
      named getDirectionId Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;getDirectionId()I
    • getStack

      public ItemStack getStack()
      Mappings:
      Namespace Name Mixin selector
      official c Lja;c()Lzx;
      intermediary method_5822 Lnet/minecraft/class_1582;method_5822()Lnet/minecraft/class_2056;
      named getStack Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;getStack()Lnet/minecraft/item/ItemStack;
    • getDistanceX

      public float getDistanceX()
      Mappings:
      Namespace Name Mixin selector
      official d Lja;d()F
      intermediary method_5823 Lnet/minecraft/class_1582;method_5823()F
      named getDistanceX Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;getDistanceX()F
    • getDistanceY

      public float getDistanceY()
      Mappings:
      Namespace Name Mixin selector
      official e Lja;e()F
      intermediary method_5824 Lnet/minecraft/class_1582;method_5824()F
      named getDistanceY Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;getDistanceY()F
    • getDistanceZ

      public float getDistanceZ()
      Mappings:
      Namespace Name Mixin selector
      official f Lja;f()F
      intermediary method_5825 Lnet/minecraft/class_1582;method_5825()F
      named getDistanceZ Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;getDistanceZ()F