Skip to content

Class "EntityPickup"⚓︎

Class Diagram⚓︎

    classDiagram
    class Entity:::diagramCurrentPage
    class EntityBomb
    class EntityEffect
    class EntityFamiliar
    class EntityKnife
    class EntityLaser
    class EntityNPC
    class EntityPickup
    class EntityPlayer
    class EntityProjectile
    class EntitySlot
    class EntityTear
    Entity <|-- EntityBomb
    Entity <|-- EntityEffect
    Entity <|-- EntityFamiliar
    Entity <|-- EntityKnife
    Entity <|-- EntityLaser
    Entity <|-- EntityNPC
    Entity <|-- EntityPickup
    Entity <|-- EntityPlayer
    Entity <|-- EntityProjectile
    Entity <|-- EntitySlot
    Entity <|-- EntityTear
    link Entity "https://wofsauge.github.io/IsaacDocs/rep/Entity.html" "Go to page for 'Entity' class"
    link EntityBomb "https://wofsauge.github.io/IsaacDocs/rep/EntityBomb.html" "Go to page for 'EntityBomb' class"
    link EntityEffect "https://wofsauge.github.io/IsaacDocs/rep/EntityEffect.html" "Go to page for 'EntityEffect' class"
    link EntityFamiliar "https://wofsauge.github.io/IsaacDocs/rep/EntityFamiliar.html" "Go to page for 'EntityFamiliar' class"
    link EntityKnife "https://wofsauge.github.io/IsaacDocs/rep/EntityKnife.html" "Go to page for 'EntityKnife' class"
    link EntityLaser "EntityLaser.html" "Go to page for 'EntityLaser' class"
    link EntityNPC "EntityNPC.html" "Go to page for 'EntityNPC' class"
    link EntityPickup "EntityPickup.html" "Go to page for 'EntityPickup' class"
    link EntityPlayer "EntityPlayer.html" "Go to page for 'EntityPlayer' class"
    link EntityProjectile "https://wofsauge.github.io/IsaacDocs/rep/EntityProjectile.html" "Go to page for 'EntityProjectile' class"
    link EntitySlot "EntitySlot.html" "Go to page for 'EntitySlot' class"
    link EntityTear "https://wofsauge.github.io/IsaacDocs/rep/EntityTear.html" "Go to page for 'EntityTear' class"

Functions⚓︎

AddCollectibleCycle ()⚓︎

boolean AddCollectibleCycle ( int id )⚓︎


CanReroll ()⚓︎

boolean CanReroll ( )⚓︎


GetAlternatePedestal ()⚓︎

int GetAlternatePedestal ( )⚓︎


GetCollectibleCycle ()⚓︎

CollectibleType[] GetCollectibleCycle ( )⚓︎

返回一个表格,其中包含在其收藏品循环(例如错误王冠)中使用的所有 CollectibleTypes

GetDropDelay ()⚓︎

int GetDropDelay ( )⚓︎


GetLootList ()⚓︎

LootList GetLootList ( )⚓︎

返回拾取物的 LootList只读版本。可以通过使用嗝屁猫之眼收藏品来查看拾取物中的战利品。

GetPickupGhost ()⚓︎

EntityEffect GetPickupGhost ( )⚓︎

返回通过嗝屁猫之眼可见的 EffectVariant.PICKUP_GHOST 实体效果。如果不可见,则返回 nil

GetPriceSprite ()⚓︎

Sprite GetPriceSprite ( )⚓︎


GetRandomPickupVelocity ()⚓︎

Vector GetRandomPickupVelocity ( Vector Position, RNG RNG = nil, int VelocityType = 0 )⚓︎

VelocityType 1 会将拾取物朝下方的锥形区域射出,主要用于乞丐的奖励。 VelocityType 0 会将拾取物朝所需位置周围的随机方向射出。 VelocityType 似乎也会影响挑战房间中的拾取物,使其速度更慢。

Warning

这是一个静态函数,必须通过 EntityPickup.GetRandomPickupVelocity(Position, RNG, VelocityType) 调用。


GetVarData ()⚓︎

int GetVarData ( )⚓︎


IsBlind ()⚓︎

boolean IsBlind ( )⚓︎

如果拾取物是收藏品基座且处于隐藏状态,则返回 true。对于非收藏品实体拾取物,始终返回 false

Warning

此值不考虑盲目诅咒,它仅反映通常在不涉及诅咒的情况下处于盲目状态的拾取物的盲目状态。例如:隐藏路线的额外物品。


MakeShopItem ()⚓︎

void MakeShopItem ( int ShopItemID )⚓︎


RemoveCollectibleCycle ()⚓︎

void RemoveCollectibleCycle ( )⚓︎


SetAlternatePedestal ()⚓︎

void SetAlternatePedestal ( int PedestalType )⚓︎

设置物品基座的图形。对非收藏品实体拾取物无效。


SetDropDelay ()⚓︎

void SetDropDelay ( int Delay )⚓︎


SetForceBlind ()⚓︎

void SetForceBlind ( boolean SetBlind )⚓︎

像盲目诅咒一样隐藏基座物品。对非收藏品实体拾取物无效。


SetNewOptionsPickupIndex ()⚓︎

int SetNewOptionsPickupIndex ( )⚓︎

返回新的拾取物索引。


SetVarData ()⚓︎

void SetVarData ( int VarData )⚓︎


TriggerTheresOptionsPickup ()⚓︎

void TriggerTheresOptionsPickup ( )⚓︎

移除与目标拾取物具有相同选项组(OptionsPickupIndex)的拾取物。


TryFlip ()⚓︎

boolean TryFlip ( )⚓︎

尝试翻转收藏品,例如在使用翻转物品对带有第二个全息收藏品(位于第一个后面)的收藏品基座进行操作时。如果成功则返回 true,否则返回 false;如果用于非收藏品实体拾取物,也返回 false


TryInitOptionCycle ()⚓︎

boolean TryInitOptionCycle ( int NumCycle )⚓︎

使收藏品基座开始循环显示指定数量的收藏品,包括其自身的收藏品类型。


TryRemoveCollectible ()⚓︎

boolean TryRemoveCollectible ( )⚓︎

如果成功从基座上移除了一个收藏品,则返回 true。如果基座已经为空,或者对非收藏品实体拾取物调用此函数,则返回 false。 尝试从物品基座上移除收藏品。


UpdatePickupGhosts ()⚓︎

void UpdatePickupGhosts ( )⚓︎

根据拾取物当前的 LootList 更新 EffectVariant.PICKUP_GHOST 实体效果。