Class WrapperPlayServerEntityMetadata

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerEntityMetadata

public class WrapperPlayServerEntityMetadata extends AbstractPacket
Send by server to client to update the entity metadata for a previously spawned entity
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
  • Constructor Details

    • WrapperPlayServerEntityMetadata

      public WrapperPlayServerEntityMetadata()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerEntityMetadata

      public WrapperPlayServerEntityMetadata(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()
      Gets the id of the entity for which to modify metadata
      Returns:
      entity id
    • setId

      public void setId(int value)
      Sets the id of the entity for which to modify metadata
      Parameters:
      value - entity id
    • getPackedItems

      public List<com.comphenix.protocol.wrappers.WrappedDataValue> getPackedItems()
      Retrieves a list of metadata values to update
      Returns:
      'packedItems' list of metadata values
    • setPackedItems

      public void setPackedItems(List<com.comphenix.protocol.wrappers.WrappedDataValue> value)
      Sets the list of metadata values to update
      Parameters:
      value - List of metadata values