Class WrapperPlayServerWorldEvent
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerWorldEvent
-
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 valuesWrapperPlayServerWorldEvent
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionint
getData()
Retrieves the value of field 'data'boolean
Retrieves the value of field 'globalEvent'com.comphenix.protocol.wrappers.BlockPosition
getPos()
Retrieves the value of field 'pos'int
getType()
Retrieves the type of the action to perform.void
setData
(int value) Sets the value of field 'data'void
setGlobalEvent
(boolean value) Sets the value of field 'globalEvent'void
setPos
(com.comphenix.protocol.wrappers.BlockPosition value) Sets the value of field 'pos'void
setType
(int value) Sets the type of the action to perform.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
-
WrapperPlayServerWorldEvent
public WrapperPlayServerWorldEvent()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerWorldEvent
public WrapperPlayServerWorldEvent(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getType
public int getType()Retrieves the type of the action to perform. A list of all actions can be found here: https://wiki.vg/Protocol#World_Event- Returns:
- 'type'
-
setType
public void setType(int value) Sets the type of the action to perform. A list of all actions can be found here: https://wiki.vg/Protocol#World_Event- Parameters:
value
- New value for field 'type'
-
getPos
public com.comphenix.protocol.wrappers.BlockPosition getPos()Retrieves the value of field 'pos'- Returns:
- 'pos'
-
setPos
public void setPos(com.comphenix.protocol.wrappers.BlockPosition value) Sets the value of field 'pos'- Parameters:
value
- New value for field 'pos'
-
getData
public int getData()Retrieves the value of field 'data'- Returns:
- 'data'
-
setData
public void setData(int value) Sets the value of field 'data'- Parameters:
value
- New value for field 'data'
-
getGlobalEvent
public boolean getGlobalEvent()Retrieves the value of field 'globalEvent'- Returns:
- 'globalEvent'
-
setGlobalEvent
public void setGlobalEvent(boolean value) Sets the value of field 'globalEvent'- Parameters:
value
- New value for field 'globalEvent'
-