local ____lualib = require("lualib_bundle")
local __TS__Class = ____lualib.__TS__Class
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
local ____exports = {}
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
local ____CustomCallback = require("classes.private.CustomCallback")
local CustomCallback = ____CustomCallback.CustomCallback
____exports.PreEntitySpawnFilter = __TS__Class()
local PreEntitySpawnFilter = ____exports.PreEntitySpawnFilter
PreEntitySpawnFilter.name = "PreEntitySpawnFilter"
__TS__ClassExtends(PreEntitySpawnFilter, CustomCallback)
function PreEntitySpawnFilter.prototype.____constructor(self)
    CustomCallback.prototype.____constructor(self)
    self.shouldFire = function(____, fireArgs, optionalArgs)
        local entityType, variant, subType = table.unpack(fireArgs)
        local callbackEntityType, callbackVariant, callbackSubType = table.unpack(optionalArgs)
        return (callbackEntityType == nil or callbackEntityType == entityType) and (callbackVariant == nil or callbackVariant == variant) and (callbackSubType == nil or callbackSubType == subType)
    end
    self.preEntitySpawn = function(____, entityType, variant, subType, position, velocity, spawner, initSeed) return self:fire(
        entityType,
        variant,
        subType,
        position,
        velocity,
        spawner,
        initSeed
    ) end
    self.callbacksUsed = {{ModCallback.PRE_ENTITY_SPAWN, self.preEntitySpawn}}
end
return ____exports
