2013-11-24 04:08:04 -05:00
return
{
cArrowEntity =
{
Desc = [ [
Represents the arrow when it is shot from the bow . A subclass of the { { cProjectileEntity } } .
] ] ,
Functions =
{
CanPickup = { Params = " {{cPlayer|Player}} " , Return = " bool " , Notes = " Returns true if the specified player can pick the arrow when it's on the ground " } ,
GetDamageCoeff = { Params = " " , Return = " number " , Notes = " Returns the damage coefficient stored within the arrow. The damage dealt by this arrow is multiplied by this coeff " } ,
GetPickupState = { Params = " " , Return = " PickupState " , Notes = " Returns the pickup state (one of the psXXX constants, above) " } ,
IsCritical = { Params = " " , Return = " bool " , Notes = " Returns true if the arrow should deal critical damage. Based on the bow charge when the arrow was shot. " } ,
SetDamageCoeff = { Params = " number " , Return = " " , Notes = " Sets the damage coefficient. The damage dealt by this arrow is multiplied by this coeff " } ,
SetIsCritical = { Params = " bool " , Return = " " , Notes = " Sets the IsCritical flag on the arrow. Critical arrow deal additional damage " } ,
SetPickupState = { Params = " PickupState " , Return = " " , Notes = " Sets the pickup state (one of the psXXX constants, above) " } ,
} ,
Constants =
{
psInCreative = { Notes = " The arrow can be picked up only by players in creative gamemode " } ,
psInSurvivalOrCreative = { Notes = " The arrow can be picked up by players in survival or creative gamemode " } ,
psNoPickup = { Notes = " The arrow cannot be picked up at all " } ,
} ,
ConstantGroups =
{
PickupState =
{
Include = " ps.* " ,
TextBefore = [ [
The following constants are used to signalize whether the arrow , once it lands , can be picked by
players :
] ] ,
} ,
} ,
Inherits = " cProjectileEntity " ,
} , -- cArrowEntity
2014-10-21 17:11:45 -04:00
cExpBottleEntity =
{
2014-10-22 10:04:31 -04:00
Desc = [ [
Represents a thrown ExpBottle . A subclass of the { { cProjectileEntity } } .
] ] ,
Functions =
{
} ,
2014-10-21 17:11:45 -04:00
Inherits = " cProjectileEntity " ,
} , -- cExpBottleEntity
2013-11-24 04:08:04 -05:00
cFireChargeEntity =
{
2014-10-22 10:04:31 -04:00
Desc = [ [
Represents a fire charge that has been shot by a Blaze or a { { cDispenserEntity | Dispenser } } . A subclass
of the { { cProjectileEntity } } .
] ] ,
2013-11-24 04:08:04 -05:00
Functions = { } ,
Inherits = " cProjectileEntity " ,
} , -- cFireChargeEntity
2014-10-21 17:11:45 -04:00
cFireworkEntity =
{
2014-10-22 10:04:31 -04:00
Desc = [ [
Represents a firework rocket .
] ] ,
Functions =
{
GetItem = { Params = " " , Return = " {{cItem}} " , Notes = " Returns the item that has been used to create the firework rocket. The item's m_FireworkItem member contains all the firework-related data. " } ,
GetTicksToExplosion = { Params = " " , Return = " number " , Notes = " Returns the number of ticks left until the firework explodes. " } ,
SetItem = { Params = " {{cItem}} " , Return = " " , Notes = " Sets a new item to be used for the firework. " } ,
SetTicksToExplosion = { Params = " NumTicks " , Return = " " , Notes = " Sets the number of ticks left until the firework explodes. " } ,
} ,
2014-10-21 17:11:45 -04:00
Inherits = " cProjectileEntity " ,
} , -- cFireworkEntity
cFloater =
{
Desc = " " ,
Functions = { } ,
Inherits = " cProjectileEntity " ,
} , -- cFloater
2013-11-24 04:08:04 -05:00
cGhastFireballEntity =
{
Desc = " " ,
Functions = { } ,
Inherits = " cProjectileEntity " ,
} , -- cGhastFireballEntity
cProjectileEntity =
{
Desc = " " ,
Functions =
{
GetCreator = { Params = " " , Return = " {{cEntity}} descendant " , Notes = " Returns the entity who created this projectile. May return nil. " } ,
GetMCAClassName = { Params = " " , Return = " string " , Notes = " Returns the string that identifies the projectile type (class name) in MCA files " } ,
GetProjectileKind = { Params = " " , Return = " ProjectileKind " , Notes = " Returns the kind of this projectile (pkXXX constant) " } ,
IsInGround = { Params = " " , Return = " bool " , Notes = " Returns true if this projectile has hit the ground. " } ,
} ,
Constants =
{
pkArrow = { Notes = " The projectile is an {{cArrowEntity|arrow}} " } ,
pkEgg = { Notes = " The projectile is a {{cThrownEggEntity|thrown egg}} " } ,
pkEnderPearl = { Notes = " The projectile is a {{cThrownEnderPearlEntity|thrown enderpearl}} " } ,
2014-10-21 17:11:45 -04:00
pkExpBottle = { Notes = " The projectile is a {{cExpBottleEntity|thrown exp bottle}} " } ,
2013-11-24 04:08:04 -05:00
pkFireCharge = { Notes = " The projectile is a {{cFireChargeEntity|fire charge}} " } ,
2014-10-21 17:11:45 -04:00
pkFirework = { Notes = " The projectile is a (flying) {{cFireworkEntity|firework}} " } ,
pkFishingFloat = { Notes = " The projectile is a {{cFloater|fishing float}} " } ,
2013-11-24 04:08:04 -05:00
pkGhastFireball = { Notes = " The projectile is a {{cGhastFireballEntity|ghast fireball}} " } ,
pkSnowball = { Notes = " The projectile is a {{cThrownSnowballEntity|thrown snowball}} " } ,
2014-10-21 17:11:45 -04:00
pkSplashPotion = { Notes = " The projectile is a {{cSplashPotionEntity|thrown splash potion}} " } ,
pkWitherSkull = { Notes = " The projectile is a {{cWitherSkullEntity|wither skull}} " } ,
2013-11-24 04:08:04 -05:00
} ,
ConstantGroups =
{
ProjectileKind =
{
Include = " pk.* " ,
TextBefore = " The following constants are used to distinguish between the different projectile kinds: " ,
} ,
} ,
Inherits = " cEntity " ,
} , -- cProjectileEntity
2014-10-21 17:11:45 -04:00
cSplashPotionEntity =
{
2014-10-25 15:27:27 -04:00
Desc = [ [
Represents a thrown splash potion .
] ] ,
Functions =
{
GetEntityEffect = { Params = " " , Return = " {{cEntityEffect}} " , Notes = " Returns the entity effect in this potion " } ,
GetEntityEffectType = { Params = " " , Return = " {{cEntityEffect|Entity effect type}} " , Notes = " Returns the effect type of this potion " } ,
GetPotionColor = { Params = " " , Return = " number " , Notes = " Returns the color index of the particles emitted by this potion " } ,
SetEntityEffect = { Params = " {{cEntityEffect}} " , Return = " " , Notes = " Sets the entity effect for this potion " } ,
SetEntityEffectType = { Params = " {{cEntityEffect|Entity effect type}} " , Return = " " , Notes = " Sets the effect type of this potion " } ,
SetPotionColor = { Params = " number " , Return = " " , Notes = " Sets the color index of the particles for this potion " } ,
} ,
2014-10-21 17:11:45 -04:00
Inherits = " cProjectileEntity " ,
} , -- cSplashPotionEntity
2013-11-24 04:08:04 -05:00
cThrownEggEntity =
{
2014-10-25 15:27:27 -04:00
Desc = [ [
Represents a thrown egg .
] ] ,
2013-11-24 04:08:04 -05:00
Functions = { } ,
Inherits = " cProjectileEntity " ,
} , -- cThrownEggEntity
cThrownEnderPearlEntity =
{
2014-10-25 15:27:27 -04:00
Desc = " Represents a thrown ender pearl. " ,
2013-11-24 04:08:04 -05:00
Functions = { } ,
Inherits = " cProjectileEntity " ,
} , -- cThrownEnderPearlEntity
2014-10-21 17:11:45 -04:00
2013-11-24 04:08:04 -05:00
cThrownSnowballEntity =
{
2014-10-25 15:27:27 -04:00
Desc = " Represents a thrown snowball. " ,
2013-11-24 04:08:04 -05:00
Functions = { } ,
Inherits = " cProjectileEntity " ,
} , -- cThrownSnowballEntity
2014-10-21 17:11:45 -04:00
cWitherSkullEntity =
{
2014-10-25 15:27:27 -04:00
Desc = " Represents a wither skull being shot. " ,
2014-10-21 17:11:45 -04:00
Functions = { } ,
Inherits = " cProjectileEntity " ,
} , -- cWitherSkullEntity
2013-11-24 04:08:04 -05:00
}