Class ServerboundUseItemPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundUseItemPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundUseItemPacket(io.netty.buffer.ByteBuf in) ServerboundUseItemPacket(@NonNull Hand hand, int sequence, float yaw, float pitch) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull HandgetHand()floatgetPitch()intfloatgetYaw()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundUseItemPacket@NonNull ServerboundUseItemPacketwithPitch(float pitch) @NonNull ServerboundUseItemPacketwithSequence(int sequence) @NonNull ServerboundUseItemPacketwithYaw(float yaw) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundUseItemPacket
public ServerboundUseItemPacket(io.netty.buffer.ByteBuf in) -
ServerboundUseItemPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getHand
-
getSequence
public int getSequence() -
getYaw
public float getYaw() -
getPitch
public float getPitch() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withHand
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSequence
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withYaw
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPitch
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-