Entity.clone constructor

Entity.clone(
  1. Entity ent
)

creates a new instance of an already existing Entity object

Implementation

Entity.clone(Entity ent)
    : selector = ent.selector,
      playerName = ent.playerName,
      arguments = ent.arguments.deepCopy();