Class InstantPlace

java.lang.Object
com.beansgalaxy.backpacks.network.serverbound.InstantPlace
All Implemented Interfaces:
Packet2S

public class InstantPlace extends Object implements Packet2S
  • Constructor Summary

    Constructors
    Constructor
    Description
    InstantPlace(int entityId, net.minecraft.world.phys.BlockHitResult blockHitResult)
     
    InstantPlace(net.minecraft.network.FriendlyByteBuf byteBuf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(net.minecraft.network.FriendlyByteBuf buf)
     
     
    void
    handle(net.minecraft.server.level.ServerPlayer sender)
     
    static void
    send(int i, net.minecraft.world.phys.BlockHitResult blockHitResult)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.beansgalaxy.backpacks.network.serverbound.Packet2S

    send2S
  • Constructor Details

    • InstantPlace

      public InstantPlace(int entityId, net.minecraft.world.phys.BlockHitResult blockHitResult)
    • InstantPlace

      public InstantPlace(net.minecraft.network.FriendlyByteBuf byteBuf)
  • Method Details

    • send

      public static void send(int i, net.minecraft.world.phys.BlockHitResult blockHitResult)
    • getNetwork

      public Network2S getNetwork()
      Specified by:
      getNetwork in interface Packet2S
    • encode

      public void encode(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      encode in interface Packet2S
    • handle

      public void handle(net.minecraft.server.level.ServerPlayer sender)
      Specified by:
      handle in interface Packet2S