Class ServerboundUseItemOnPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundUseItemOnPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundUseItemOnPacket(@NonNull org.cloudburstmc.math.vector.Vector3i position, @NonNull Direction face, @NonNull Hand hand, float cursorX, float cursorY, float cursorZ, boolean insideBlock, int sequence) ServerboundUseItemOnPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatfloatfloat@NonNull DirectiongetFace()@NonNull HandgetHand()@NonNull org.cloudburstmc.math.vector.Vector3iintinthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundUseItemOnPacketwithCursorX(float cursorX) @NonNull ServerboundUseItemOnPacketwithCursorY(float cursorY) @NonNull ServerboundUseItemOnPacketwithCursorZ(float cursorZ) @NonNull ServerboundUseItemOnPacket@NonNull ServerboundUseItemOnPacket@NonNull ServerboundUseItemOnPacketwithInsideBlock(boolean insideBlock) @NonNull ServerboundUseItemOnPacketwithPosition(@NonNull org.cloudburstmc.math.vector.Vector3i position) @NonNull ServerboundUseItemOnPacketwithSequence(int sequence) 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
-
ServerboundUseItemOnPacket
-
ServerboundUseItemOnPacket
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getPosition
@NonNull public @NonNull org.cloudburstmc.math.vector.Vector3i getPosition() -
getFace
-
getHand
-
getCursorX
public float getCursorX() -
getCursorY
public float getCursorY() -
getCursorZ
public float getCursorZ() -
isInsideBlock
public boolean isInsideBlock() -
getSequence
public int getSequence() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withPosition
public @NonNull ServerboundUseItemOnPacket withPosition(@NonNull @NonNull org.cloudburstmc.math.vector.Vector3i position) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFace
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withHand
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCursorX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCursorY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCursorZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withInsideBlock
- 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).
-