Prevents armor from being damaged
armor item string id
Registers armor's hurt and tick functions
armor item string id
Called when player deals damage if player wears the armor
additional data about damage
attacker entity or -1 if the damage was not caused by an entity
unknown param
unknown param
damage amout that was applied to the player
damage type
current armor item instance
armor slot, one of the Native.ArmorType values
maximum damage the armor
true, if changes to the item parameter should be applied, false otherwise
Called every tick if player wears the armor
current armor item instance
armor slot, one of the Native.ArmorType values
maximum damage the armor
true, if changes to the item parameter should be applied, false otherwise
This event is called when the damage is dealed to the player that has this armor put on.
the {id: , count: , data: , extra: } object to change armor item, if nothing is returned, armor will be damaged by default.
This event is called when player takes off or changes this armor item.
This event is called when player takes on this armor, or spawns with it.
This event is called every tick for every player that has this armor put on.
the {id: , count: , data: , extra: } object to change armor item, if nothing is returned, armor will not be changed.
Generated using TypeDoc
Module used to manage armor's behavior