private void useEntityFromPath(Player player,RPAction action){
  Entity entity=EntityHelper.getEntityFromPath(player,action.getList(TARGET_PATH));
  if (entity != null) {
    if (entity.isContained() && !ItemAccessPermissions.mayAccessContainedEntity(player,entity)) {
      return;
    }
    tryUse(player,entity);
  }
}

private void useEntityFromPath ( Player player , RPAction action ) { Entity entity = EntityHelper . getEntityFromPath ( player , action . getList ( TARGET_PATH ) ) ; if ( entity != null ) { if ( entity . isContained ( ) && ! ItemAccessPermissions . mayAccessContainedEntity ( player , entity ) ) { return ; } tryUse ( player , entity ) ; } }
use an entity identified by target_path .
