Class ClientboundAddExperienceOrbPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.spawn.ClientboundAddExperienceOrbPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundAddExperienceOrbPacket(int entityId, double x, double y, double z, int exp) ClientboundAddExperienceOrbPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintgetExp()doublegetX()doublegetY()doublegetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundAddExperienceOrbPacketwithEntityId(int entityId) @NonNull ClientboundAddExperienceOrbPacketwithExp(int exp) @NonNull ClientboundAddExperienceOrbPacketwithX(double x) @NonNull ClientboundAddExperienceOrbPacketwithY(double y) @NonNull ClientboundAddExperienceOrbPacketwithZ(double z) 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
-
Constructor Details
-
ClientboundAddExperienceOrbPacket
-
ClientboundAddExperienceOrbPacket
public ClientboundAddExperienceOrbPacket(int entityId, double x, double y, double z, int exp)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getExp
public int getExp() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withEntityId
- 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).
-
withExp
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-