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.PacketTypeThe 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 TypeMethodDescriptionintgetData()Retrieves the value of field 'data'booleanRetrieves the value of field 'globalEvent'com.comphenix.protocol.wrappers.BlockPositiongetPos()Retrieves the value of field 'pos'intgetType()Retrieves the type of the action to perform.voidsetData(int value) Sets the value of field 'data'voidsetGlobalEvent(boolean value) Sets the value of field 'globalEvent'voidsetPos(com.comphenix.protocol.wrappers.BlockPosition value) Sets the value of field 'pos'voidsetType(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'
-