Class WrapperPlayServerEntityMetadata

java.lang.Object
com.comphenix.packetwrapper.AbstractPacket
com.comphenix.packetwrapper.WrapperPlayServerEntityMetadata

public class WrapperPlayServerEntityMetadata extends AbstractPacket
  • 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

      public List<com.comphenix.protocol.wrappers.WrappedWatchableObject> getMetadata()
      Retrieve Metadata.
      Returns:
      The current Metadata
    • setMetadata

      public void setMetadata(List<com.comphenix.protocol.wrappers.WrappedWatchableObject> value)
      Set Metadata.
      Parameters:
      value - - new value.