Class WrapperPlayServerSpawnEntityExperienceOrb
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerSpawnEntityExperienceOrb
Spawns one or more experience orbs.
NMS type: net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerSpawnEntityExperienceOrb
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Retrieves the value of field 'id'int
getValue()
Retrieves the amount of experience this orb will reward once collected.double
getX()
Retrieves the value of field 'x'double
getY()
Retrieves the value of field 'y'double
getZ()
Retrieves the value of field 'z'void
setId
(int value) Sets the value of field 'id'void
setValue
(int value) Sets the amount of experience this orb will reward once collected.void
setX
(double value) Sets the value of field 'x'void
setY
(double value) Sets the value of field 'y'void
setZ
(double value) Sets the value of field 'z'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerSpawnEntityExperienceOrb
public WrapperPlayServerSpawnEntityExperienceOrb()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerSpawnEntityExperienceOrb
public WrapperPlayServerSpawnEntityExperienceOrb(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getId
public int getId()Retrieves the value of field 'id'- Returns:
- 'id'
-
setId
public void setId(int value) Sets the value of field 'id'- Parameters:
value
- New value for field 'id'
-
getX
public double getX()Retrieves the value of field 'x'- Returns:
- 'x'
-
setX
public void setX(double value) Sets the value of field 'x'- Parameters:
value
- New value for field 'x'
-
getY
public double getY()Retrieves the value of field 'y'- Returns:
- 'y'
-
setY
public void setY(double value) Sets the value of field 'y'- Parameters:
value
- New value for field 'y'
-
getZ
public double getZ()Retrieves the value of field 'z'- Returns:
- 'z'
-
setZ
public void setZ(double value) Sets the value of field 'z'- Parameters:
value
- New value for field 'z'
-
getValue
public int getValue()Retrieves the amount of experience this orb will reward once collected.- Returns:
- 'value'
-
setValue
public void setValue(int value) Sets the amount of experience this orb will reward once collected.- Parameters:
value
- New value for field 'value'
-