summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Server/Plugins/APIDump/APIDesc.lua')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua154
1 files changed, 69 insertions, 85 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index 9a0b7a36e..334fed378 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -294,6 +294,24 @@ return
},
Notes = "Returns whether the specified block type is solid.",
},
+ IsSkylightDispersant =
+ {
+ IsStatic = true,
+ Params =
+ {
+ {
+ Name = "BlockType",
+ Type = "number",
+ },
+ },
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Returns true if skylight is impeded by passage through a block of the specified type.",
+ },
IsTransparent =
{
IsStatic = true,
@@ -3856,10 +3874,6 @@ local Hash = cCryptoHash.sha1HexString("DataToHash")
},
Notes = "This entity has killed another entity (the Victim). For players, adds the scoreboard statistics about the kill.",
},
- KilledBy =
- {
- Notes = "FIXME: Remove this from API",
- },
MoveToWorld =
{
{
@@ -3987,10 +4001,6 @@ local Hash = cCryptoHash.sha1HexString("DataToHash")
},
Notes = "Sets the entity's health to the specified amount of hitpoints. Doesn't broadcast any hurt animation. Doesn't kill the entity if health drops below zero. Use the TakeDamage() function instead for taking damage.",
},
- SetHeight =
- {
- Notes = "FIXME: Remove this from API",
- },
SetInvulnerableTicks =
{
Params =
@@ -4189,10 +4199,6 @@ local Hash = cCryptoHash.sha1HexString("DataToHash")
},
Notes = "Sets the Z component of the entity speed",
},
- SetWidth =
- {
- Notes = "FIXME: Remove this from API",
- },
SetYaw =
{
Params =
@@ -6472,7 +6478,13 @@ These ItemGrids are available in the API and can be manipulated by the plugins,
},
RemoveOneEquippedItem =
{
- Notes = "Removes one item from the hotbar's currently selected slot",
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Removes one item from the hotbar's currently selected slot. Returns true on success.",
},
SendEquippedSlot =
{
@@ -8818,7 +8830,7 @@ a_Player:OpenWindow(Window);
}
},
Notes = "Leash the monster to an entity.",
- },
+ },
MobTypeToString =
{
IsStatic = true,
@@ -9344,7 +9356,7 @@ a_Player:OpenWindow(Window);
{
{
Name = "EffectType",
- Type = "cEntityEffect",
+ Type = "cEntityEffect#eType",
},
{
Name = "EffectDurationTicks",
@@ -9365,22 +9377,13 @@ a_Player:OpenWindow(Window);
{
Notes = "Removes all currently applied entity effects",
},
- GetHealth =
- {
- Returns =
- {
- {
- Type = "number",
- },
- },
- },
HasEntityEffect =
{
Params =
{
{
Name = "EffectType",
- Type = "cEntityEffect",
+ Type = "cEntityEffect#eType",
},
},
Returns =
@@ -9391,37 +9394,17 @@ a_Player:OpenWindow(Window);
},
Notes = "Returns true, if the supplied entity effect type is currently applied",
},
- Heal =
- {
-
- },
- KilledBy =
- {
-
- },
RemoveEntityEffect =
{
Params =
{
{
Name = "EffectType",
- Type = "cEntityEffect",
+ Type = "cEntityEffect#eType",
},
},
Notes = "Removes a currently applied entity effect",
},
- TakeDamage =
- {
-
- },
- TeleportTo =
- {
-
- },
- TeleportToEntity =
- {
-
- },
},
Inherits = "cEntity",
},
@@ -9869,6 +9852,12 @@ a_Player:OpenWindow(Window);
Type = "number",
},
},
+ Returns =
+ {
+ {
+ Type = "number",
+ },
+ },
Notes = "Adds or removes XP from the current XP amount. Won't allow XP to go negative. Returns the new experience, -1 on error (XP overflow).",
},
Feed =
@@ -9892,17 +9881,6 @@ a_Player:OpenWindow(Window);
},
Notes = "Tries to add the specified amounts to food level and food saturation level (only positive amounts expected). Returns true if player was hungry and the food was consumed, false if too satiated.",
},
- FoodPoison =
- {
- Params =
- {
- {
- Name = "NumTicks",
- Type = "number",
- },
- },
- Notes = "Starts the food poisoning for the specified amount of ticks; if already foodpoisoned, sets FoodPoisonedTicksRemaining to the larger of the two",
- },
ForceSetSpeed =
{
Params =
@@ -10077,10 +10055,6 @@ a_Player:OpenWindow(Window);
},
Notes = "Returns the food level (number of half-drumsticks on-screen)",
},
- GetFoodPoisonedTicksRemaining =
- {
- Notes = "Returns the number of ticks left for the food posoning effect",
- },
GetFoodSaturationLevel =
{
Returns =
@@ -10093,6 +10067,12 @@ a_Player:OpenWindow(Window);
},
GetFoodTickTimer =
{
+ Returns =
+ {
+ {
+ Type = "number",
+ },
+ },
Notes = "Returns the number of ticks past the last food-based heal or damage action; when this timer reaches 80, a new heal / damage is applied.",
},
GetGameMode =
@@ -10389,6 +10369,16 @@ a_Player:OpenWindow(Window);
},
Notes = "Returns true if the player is currently eating the item in their hand.",
},
+ IsFireproof =
+ {
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Returns true if a player is fireproof. This is when the flag has been explicitly set, or the player is in creative or spectator mode.",
+ },
IsFishing =
{
Returns =
@@ -10493,17 +10483,6 @@ a_Player:OpenWindow(Window);
{
Notes = "Reloads the player's rank, message visuals and permissions from the {{cRankManager}}, based on the player's current rank.",
},
- MoveTo =
- {
- Params =
- {
- {
- Name = "NewPosition",
- Type = "Vector3d",
- },
- },
- Notes = "Tries to move the player into the specified position.",
- },
OpenWindow =
{
Params =
@@ -10779,6 +10758,12 @@ a_Player:OpenWindow(Window);
Type = "number",
},
},
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
Notes = "Sets the current amount of experience (and indirectly, the XP level).",
},
SetCustomName =
@@ -10847,17 +10832,6 @@ a_Player:OpenWindow(Window);
},
Notes = "Sets the food level (number of half-drumsticks on-screen)",
},
- SetFoodPoisonedTicksRemaining =
- {
- Params =
- {
- {
- Name = "FoodPoisonedTicksRemaining",
- Type = "number",
- },
- },
- Notes = "Sets the number of ticks remaining for food poisoning. Doesn't send foodpoisoning effect to the client, use FoodPoison() for that.",
- },
SetFoodSaturationLevel =
{
Params =
@@ -11527,6 +11501,17 @@ a_Player:OpenWindow(Window);
{
Notes = "Saves all the chunks in all the worlds. Note that the saving is queued on each world's tick thread and this functions returns before the chunks are actually saved.",
},
+ SetSavingEnabled =
+ {
+ Params =
+ {
+ {
+ Name = "SavingEnabled",
+ Type = "boolean",
+ },
+ },
+ Notes = "Sets whether saving chunk data is enabled for all worlds. If disabled, dirty chunks will stay in memory forever, which can cause performance and stability issues.",
+ },
},
AdditionalInfo =
{
@@ -15802,7 +15787,7 @@ end
E_ITEM_LEASH =
{
Notes = "The itemtype for lead (E_ITEM_LEAD synonym)"
- },
+ },
E_ITEM_LEATHER =
{
Notes = "The itemtype for leather"
@@ -17532,4 +17517,3 @@ end
"__.*__",
},
}
-