get_entity_filtered(filters) | → LuaCustomTable[string → LuaEntityPrototype] | Returns a dictionary of all LuaEntityPrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaEntityPrototypes that fit the given filters. [...] | ||
get_item_filtered(filters) | → LuaCustomTable[string → LuaItemPrototype] | Returns a dictionary of all LuaItemPrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaItemPrototypes that fit the given filters. [...] | ||
get_equipment_filtered(filters) | → LuaCustomTable[string → LuaEquipmentPrototype] | Returns a dictionary of all LuaEquipmentPrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaEquipmentPrototypes that fit the given filters. [...] | ||
get_mod_setting_filtered(filters) | → LuaCustomTable[string → LuaModSettingPrototype] | Returns a dictionary of all LuaModSettingPrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaModSettingPrototypes that fit the given filters. [...] | ||
get_achievement_filtered(filters) | → LuaCustomTable[string → LuaAchievementPrototype] | Returns a dictionary of all LuaAchievementPrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaAchievementPrototypes that fit the given filters. [...] | ||
get_tile_filtered(filters) | → LuaCustomTable[string → LuaTilePrototype] | Returns a dictionary of all LuaTilePrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaTilePrototypes that fit the given filters. [...] | ||
get_decorative_filtered(filters) | → LuaCustomTable[string → LuaDecorativePrototype] | Returns a dictionary of all LuaDecorativePrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaDecorativePrototypes that fit the given filters. [...] | ||
get_fluid_filtered(filters) | → LuaCustomTable[string → LuaFluidPrototype] | Returns a dictionary of all LuaFluidPrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaFluidPrototypes that fit the given filters. [...] | ||
get_recipe_filtered(filters) | → LuaCustomTable[string → LuaRecipePrototype] | Returns a dictionary of all LuaRecipePrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaRecipePrototypes that fit the given filters. [...] | ||
get_technology_filtered(filters) | → LuaCustomTable[string → LuaTechnologyPrototype] | Returns a dictionary of all LuaTechnologyPrototypes that fit the given filters. [...] |
Returns a dictionary of all LuaTechnologyPrototypes that fit the given filters. [...] | ||
get_history(type, name) | → PrototypeHistory | Gets the prototype history for the given type and name. |
Gets the prototype history for the given type and name. | ||
object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] | ||
font | :: R LuaCustomTable[string → LuaFontPrototype] | A dictionary containing every LuaFontPrototype indexed by |
A dictionary containing every LuaFontPrototype indexed by | ||
map_gen_preset | :: R LuaCustomTable[string → MapGenPreset] | A dictionary containing every MapGenPreset indexed by |
A dictionary containing every MapGenPreset indexed by | ||
style | :: R LuaCustomTable[string → string] | A map of styles that LuaGuiElement can use. [...] |
A map of styles that LuaGuiElement can use. [...] | ||
entity | :: R LuaCustomTable[string → LuaEntityPrototype] | A dictionary containing every LuaEntityPrototype indexed by |
A dictionary containing every LuaEntityPrototype indexed by | ||
item | :: R LuaCustomTable[string → LuaItemPrototype] | A dictionary containing every LuaItemPrototype indexed by |
A dictionary containing every LuaItemPrototype indexed by | ||
fluid | :: R LuaCustomTable[string → LuaFluidPrototype] | A dictionary containing every LuaFluidPrototype indexed by |
A dictionary containing every LuaFluidPrototype indexed by | ||
tile | :: R LuaCustomTable[string → LuaTilePrototype] | A dictionary containing every LuaTilePrototype indexed by |
A dictionary containing every LuaTilePrototype indexed by | ||
equipment | :: R LuaCustomTable[string → LuaEquipmentPrototype] | A dictionary containing every LuaEquipmentPrototype indexed by |
A dictionary containing every LuaEquipmentPrototype indexed by | ||
damage | :: R LuaCustomTable[string → LuaDamagePrototype] | A dictionary containing every LuaDamagePrototype indexed by |
A dictionary containing every LuaDamagePrototype indexed by | ||
virtual_signal | :: R LuaCustomTable[string → LuaVirtualSignalPrototype] | A dictionary containing every LuaVirtualSignalPrototype indexed by |
A dictionary containing every LuaVirtualSignalPrototype indexed by | ||
equipment_grid | :: R LuaCustomTable[string → LuaEquipmentGridPrototype] | A dictionary containing every LuaEquipmentGridPrototype indexed by |
A dictionary containing every LuaEquipmentGridPrototype indexed by | ||
recipe | :: R LuaCustomTable[string → LuaRecipePrototype] | A dictionary containing every LuaRecipePrototype indexed by |
A dictionary containing every LuaRecipePrototype indexed by | ||
technology | :: R LuaCustomTable[string → LuaTechnologyPrototype] | A dictionary containing every LuaTechnologyPrototype indexed by |
A dictionary containing every LuaTechnologyPrototype indexed by | ||
decorative | :: R LuaCustomTable[string → LuaDecorativePrototype] | A dictionary containing every LuaDecorativePrototype indexed by |
A dictionary containing every LuaDecorativePrototype indexed by | ||
particle | :: R LuaCustomTable[string → LuaParticlePrototype] | A dictionary containing every LuaParticlePrototype indexed by |
A dictionary containing every LuaParticlePrototype indexed by | ||
autoplace_control | :: R LuaCustomTable[string → LuaAutoplaceControlPrototype] | A dictionary containing every LuaAutoplaceControlPrototype indexed by |
A dictionary containing every LuaAutoplaceControlPrototype indexed by | ||
mod_setting | :: R LuaCustomTable[string → LuaModSettingPrototype] | A dictionary containing every LuaModSettingPrototype indexed by |
A dictionary containing every LuaModSettingPrototype indexed by | ||
custom_input | :: R LuaCustomTable[string → LuaCustomInputPrototype] | A dictionary containing every LuaCustomInputPrototype indexed by |
A dictionary containing every LuaCustomInputPrototype indexed by | ||
ammo_category | :: R LuaCustomTable[string → LuaAmmoCategoryPrototype] | A dictionary containing every LuaAmmoCategoryPrototype indexed by |
A dictionary containing every LuaAmmoCategoryPrototype indexed by | ||
named_noise_expression | :: R LuaCustomTable[string → LuaNamedNoiseExpression] | A dictionary containing every LuaNamedNoiseExpression indexed by |
A dictionary containing every LuaNamedNoiseExpression indexed by | ||
named_noise_function | :: R LuaCustomTable[string → LuaNamedNoiseFunction] | A dictionary containing every LuaNamedNoiseFunction indexed by |
A dictionary containing every LuaNamedNoiseFunction indexed by | ||
item_subgroup | :: R LuaCustomTable[string → LuaGroup] | A dictionary containing every ItemSubgroup indexed by |
A dictionary containing every ItemSubgroup indexed by | ||
item_group | :: R LuaCustomTable[string → LuaGroup] | A dictionary containing every ItemGroup indexed by |
A dictionary containing every ItemGroup indexed by | ||
fuel_category | :: R LuaCustomTable[string → LuaFuelCategoryPrototype] | A dictionary containing every LuaFuelCategoryPrototype indexed by |
A dictionary containing every LuaFuelCategoryPrototype indexed by | ||
resource_category | :: R LuaCustomTable[string → LuaResourceCategoryPrototype] | A dictionary containing every LuaResourceCategoryPrototype indexed by |
A dictionary containing every LuaResourceCategoryPrototype indexed by | ||
achievement | :: R LuaCustomTable[string → LuaAchievementPrototype] | A dictionary containing every LuaAchievementPrototype indexed by |
A dictionary containing every LuaAchievementPrototype indexed by | ||
module_category | :: R LuaCustomTable[string → LuaModuleCategoryPrototype] | A dictionary containing every LuaModuleCategoryPrototype indexed by |
A dictionary containing every LuaModuleCategoryPrototype indexed by | ||
equipment_category | :: R LuaCustomTable[string → LuaEquipmentCategoryPrototype] | A dictionary containing every LuaEquipmentCategoryPrototype indexed by |
A dictionary containing every LuaEquipmentCategoryPrototype indexed by | ||
trivial_smoke | :: R LuaCustomTable[string → LuaTrivialSmokePrototype] | A dictionary containing every LuaTrivialSmokePrototype indexed by |
A dictionary containing every LuaTrivialSmokePrototype indexed by | ||
shortcut | :: R LuaCustomTable[string → LuaShortcutPrototype] | A dictionary containing every LuaShortcutPrototype indexed by |
A dictionary containing every LuaShortcutPrototype indexed by | ||
recipe_category | :: R LuaCustomTable[string → LuaRecipeCategoryPrototype] | A dictionary containing every LuaRecipeCategoryPrototype indexed by |
A dictionary containing every LuaRecipeCategoryPrototype indexed by | ||
quality | :: R LuaCustomTable[string → LuaQualityPrototype] | |
surface_property | :: R LuaCustomTable[string → LuaSurfacePropertyPrototype] | |
space_location | :: R LuaCustomTable[string → LuaSpaceLocationPrototype] | |
space_connection | :: R LuaCustomTable[string → LuaSpaceConnectionPrototype] | |
custom_event | :: R LuaCustomTable[string → LuaCustomEventPrototype] | A dictionary containing every defined custom event, indexed by |
A dictionary containing every defined custom event, indexed by | ||
active_trigger | :: R LuaCustomTable[string → LuaActiveTriggerPrototype] | A dictionary containing every LuaActiveTriggerPrototype indexed by |
A dictionary containing every LuaActiveTriggerPrototype indexed by | ||
asteroid_chunk | :: R LuaCustomTable[string → LuaAsteroidChunkPrototype] | A dictionary containing every LuaAsteroidChunkPrototype indexed by |
A dictionary containing every LuaAsteroidChunkPrototype indexed by | ||
collision_layer | :: R LuaCustomTable[string → LuaCollisionLayerPrototype] | A dictionary containing every LuaCollisionLayerPrototype indexed by |
A dictionary containing every LuaCollisionLayerPrototype indexed by | ||
airborne_pollutant | :: R LuaCustomTable[string → LuaAirbornePollutantPrototype] | A dictionary containing every LuaAirbornePollutantPrototype indexed by |
A dictionary containing every LuaAirbornePollutantPrototype indexed by | ||
burner_usage | :: R LuaCustomTable[string → LuaBurnerUsagePrototype] | A dictionary containing every LuaBurnerUsagePrototype indexed by |
A dictionary containing every LuaBurnerUsagePrototype indexed by | ||
surface | :: R LuaCustomTable[string → LuaSurfacePrototype] | A dictionary containing every LuaSurfacePrototype indexed by |
A dictionary containing every LuaSurfacePrototype indexed by | ||
procession | :: R LuaCustomTable[string → LuaProcessionPrototype] | A dictionary containing every LuaProcessionPrototype indexed by |
A dictionary containing every LuaProcessionPrototype indexed by | ||
procession_layer_inheritance_group | :: R LuaCustomTable[string → LuaProcessionLayerInheritanceGroupPrototype] | A dictionary containing every LuaProcessionLayerInheritanceGroupPrototype indexed by |
A dictionary containing every LuaProcessionLayerInheritanceGroupPrototype indexed by | ||
max_force_distraction_distance | :: R double | |
max_force_distraction_chunk_distance | :: R uint | |
max_electric_pole_supply_area_distance | :: R float | |
max_electric_pole_connection_distance | :: R double | |
max_beacon_supply_area_distance | :: R uint | |
max_gate_activation_distance | :: R double | |
max_inserter_reach_distance | :: R double | |
max_pipe_to_ground_distance | :: R uint8 | |
max_underground_belt_distance | :: R uint8 |
filters | :: array[EntityPrototypeFilter] |
-- Get every entity prototype that can craft recipes involving fluids in the way some assembling machines can
local prototypes = prototypes.get_entity_filtered{{filter="crafting-category", crafting_category="crafting-with-fluid"}}
filters | :: array[ItemPrototypeFilter] |
-- Get every item prototype that has a fuel top speed multiplier larger than 1.
local prototypes = prototypes.get_item_filtered{{filter = "fuel-top-speed-multiplier", comparison = ">", value = 1}}
filters | :: array[EquipmentPrototypeFilter] |
-- Get every equipment prototype that functions as a battery.
local prototypes = prototypes.get_equipment_filtered{{filter="type", type="battery-equipment"}}
filters | :: array[ModSettingPrototypeFilter] |
-- Get every mod setting prototype that belongs to the specified mod.
local prototypes = prototypes.get_mod_setting_filtered{{filter="mod", mod="space-exploration"}}
filters | :: array[AchievementPrototypeFilter] |
-- Get every achievement prototype that is not allowed to be completed on the peaceful difficulty setting.
local prototypes = prototypes.get_achievement_filtered{{filter="allowed-without-fight", invert=true}}
filters | :: array[TilePrototypeFilter] |
-- Get every tile prototype that improves a player's walking speed by at least 50%.
local prototypes = prototypes.get_tile_filtered{{filter="walking-speed-modifier", comparison="≥", value=1.5}}
filters | :: array[DecorativePrototypeFilter] |
-- Get every decorative prototype that is auto-placed.
local prototypes = prototypes.get_decorative_filtered{{filter="autoplace"}}
filters | :: array[FluidPrototypeFilter] |
-- Get every fluid prototype that has a heat capacity of exactly `100`.
local prototypes = prototypes.get_fluid_filtered{{filter="heat-capacity", comparison="=", value=100}}
filters | :: array[RecipePrototypeFilter] |
-- Get every recipe prototype that takes less than half a second to craft (at crafting speed `1`).
local prototypes = prototypes.get_recipe_filtered{{filter="energy", comparison="<", value=0.5}}
filters | :: array[TechnologyPrototypeFilter] |
-- Get every technology prototype that can be researched at the start of the game.
local prototypes = prototypes.get_technology_filtered{{filter="has-prerequisites", invert=true}}