Entity uses long for id
PooledEntity correctly sets its id to 0 on reset
Changed getIndex() to getId()