private void handleRemoveListeners() {
		for (Object listener : listenersToBeRemoved) {
			if (listener instanceof EntityHealthListener) {
				healthListeners.remove(listener);
			} else if (listener instanceof DeathListener) {
				deathListeners.remove(listener);
			} else if (listener instanceof EntityAttributeListener) {
				attributeListeners.remove(listener);
			} else if(listener instanceof EntityActionListener){
				actionListeners.remove(listener);
			} else {
				throw new IllegalStateException();
			}
		}
		listenersToBeRemoved.clear();
	}