parameters: (self, effect_type=None)
return_statement: return list(self.effects.values())
docstring: Returns the effects in the bundle, optionally only effects with a specific
          type.
  
          :param effect_type: Type that the effects should have.
          :type effect_type: int
          :returns: List of matching effects.
          :rtype: list
docstring_summary: Returns the effects in the bundle, optionally only effects with a specific
          type.
docstring_tokens: Returns the effects in the bundle optionally only effects with a specific type .
function: def get_effects(self, effect_type=None):
          """
          Returns the effects in the bundle, optionally only effects with a specific
          type.
  
          :param effect_type: Type that the effects should have.
          :type effect_type: int
          :returns: List of matching effects.
          :rtype: list
          """
          if effect_type:
              matching_effects = []
              for effect in self.effects.values():
                  if effect.get_type() == effect_type:
                      matching_effects.append(effect)
  
              return matching_effects
  
          return list(self.effects.values())
function_tokens: def get_effects ( self , effect_type = None ) : if effect_type : matching_effects = [ ] for effect in self . effects . values ( ) : if effect . get_type ( ) == effect_type : matching_effects . append ( effect ) return matching_effects return list ( self . effects . values ( ) )