Class ServerboundAcceptTeleportationPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.level.ServerboundAcceptTeleportationPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundAcceptTeleportationPacket(int id, double x, double y, double z, float yaw, float pitch) ServerboundAcceptTeleportationPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintgetId()floatgetPitch()doublegetX()doublegetY()floatgetYaw()doublegetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundAcceptTeleportationPacketwithId(int id) @NonNull ServerboundAcceptTeleportationPacketwithPitch(float pitch) @NonNull ServerboundAcceptTeleportationPacketwithX(double x) @NonNull ServerboundAcceptTeleportationPacketwithY(double y) @NonNull ServerboundAcceptTeleportationPacketwithYaw(float yaw) @NonNull ServerboundAcceptTeleportationPacketwithZ(double z) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundAcceptTeleportationPacket
public ServerboundAcceptTeleportationPacket(io.netty.buffer.ByteBuf in) -
ServerboundAcceptTeleportationPacket
public ServerboundAcceptTeleportationPacket(int id, double x, double y, double z, float yaw, float pitch)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getId
public int getId() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getYaw
public float getYaw() -
getPitch
public float getPitch() -
equals
-
canEqual
-
hashCode
-
toString
-
withId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withZ
- 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).
-