Package com.comphenix.packetwrapper
Class WrapperPlayServerEntityMetadata
java.lang.Object
com.comphenix.packetwrapper.AbstractPacket
com.comphenix.packetwrapper.WrapperPlayServerEntityMetadata
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWrapperPlayServerEntityMetadata(com.comphenix.protocol.events.PacketContainer packet)
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.Entity
getEntity(com.comphenix.protocol.events.PacketEvent event)
Retrieve the entity of the painting that will be spawned.org.bukkit.entity.Entity
getEntity(org.bukkit.World world)
Retrieve the entity of the painting that will be spawned.int
Retrieve Entity ID.List<com.comphenix.protocol.wrappers.WrappedWatchableObject>
Retrieve Metadata.void
setEntityID(int value)
Set Entity ID.void
setMetadata(List<com.comphenix.protocol.wrappers.WrappedWatchableObject> value)
Set Metadata.Methods inherited from class com.comphenix.packetwrapper.AbstractPacket
broadcastPacket, getHandle, receivePacket, recievePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPE
-
-
Constructor Details
-
WrapperPlayServerEntityMetadata
public WrapperPlayServerEntityMetadata() -
WrapperPlayServerEntityMetadata
public WrapperPlayServerEntityMetadata(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getEntityID
public int getEntityID()Retrieve Entity ID.Notes: entity's ID
- Returns:
- The current Entity ID
-
setEntityID
public void setEntityID(int value)Set Entity ID.- Parameters:
value
- - new value.
-
getEntity
public org.bukkit.entity.Entity getEntity(org.bukkit.World world)Retrieve the entity of the painting that will be spawned.- Parameters:
world
- - the current world of the entity.- Returns:
- The spawned entity.
-
getEntity
public org.bukkit.entity.Entity getEntity(com.comphenix.protocol.events.PacketEvent event)Retrieve the entity of the painting that will be spawned.- Parameters:
event
- - the packet event.- Returns:
- The spawned entity.
-
getMetadata
Retrieve Metadata.- Returns:
- The current Metadata
-
setMetadata
Set Metadata.- Parameters:
value
- - new value.
-