summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump/Classes
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-08 15:39:40 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-08 15:39:40 +0200
commit9ab5627a393a0b178f13fbba2c39463cfe0675b8 (patch)
tree1f89501893f02a6e711e5a31868a8acdb4ca7de5 /Server/Plugins/APIDump/Classes
parentd (diff)
parentShutdown connection when disconnect packet sent (#3999) (diff)
downloadcuberite-9ab5627a393a0b178f13fbba2c39463cfe0675b8.tar
cuberite-9ab5627a393a0b178f13fbba2c39463cfe0675b8.tar.gz
cuberite-9ab5627a393a0b178f13fbba2c39463cfe0675b8.tar.bz2
cuberite-9ab5627a393a0b178f13fbba2c39463cfe0675b8.tar.lz
cuberite-9ab5627a393a0b178f13fbba2c39463cfe0675b8.tar.xz
cuberite-9ab5627a393a0b178f13fbba2c39463cfe0675b8.tar.zst
cuberite-9ab5627a393a0b178f13fbba2c39463cfe0675b8.zip
Diffstat (limited to '')
-rw-r--r--Server/Plugins/APIDump/Classes/Projectiles.lua23
-rw-r--r--Server/Plugins/APIDump/Classes/World.lua157
2 files changed, 120 insertions, 60 deletions
diff --git a/Server/Plugins/APIDump/Classes/Projectiles.lua b/Server/Plugins/APIDump/Classes/Projectiles.lua
index a62779960..02ee01a1f 100644
--- a/Server/Plugins/APIDump/Classes/Projectiles.lua
+++ b/Server/Plugins/APIDump/Classes/Projectiles.lua
@@ -340,22 +340,12 @@ return
]],
Functions =
{
- GetEntityEffect =
- {
- Returns =
- {
- {
- Type = "cEntityEffect",
- },
- },
- Notes = "Returns the entity effect in this potion",
- },
GetEntityEffectType =
{
Returns =
{
{
- Type = "cEntityEffect",
+ Type = "cEntityEffect#eType",
},
},
Notes = "Returns the effect type of this potion",
@@ -380,17 +370,6 @@ return
},
Notes = "Returns the color index of the particles emitted by this potion",
},
- SetEntityEffect =
- {
- Params =
- {
- {
- Name = "EntityEffect",
- Type = "cEntityEffect",
- },
- },
- Notes = "Sets the entity effect for this potion",
- },
SetEntityEffectType =
{
Params =
diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua
index 63c2162e6..82f31febe 100644
--- a/Server/Plugins/APIDump/Classes/World.lua
+++ b/Server/Plugins/APIDump/Classes/World.lua
@@ -1450,6 +1450,16 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
},
Notes = "Returns the block type and metadata for the block at the specified coords. The first value specifies if the block is in a valid loaded chunk, the other values are valid only if BlockValid is true.",
},
+ GetDataPath =
+ {
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Returns the path to the root of the world data.",
+ },
GetDefaultWeatherInterval =
{
Params =
@@ -2117,6 +2127,16 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
},
Notes = "Returns whether PVP is enabled in the world settings.",
},
+ IsSavingEnabled =
+ {
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Returns whether or not saving chunk data is enabled. If disabled, the world will keep dirty chunks in memory forever, and will simply regenerate non-dirty chunks that are unloaded.",
+ },
IsTrapdoorOpen =
{
Params =
@@ -2726,6 +2746,17 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
},
Notes = "Sets the blockticking to start at the specified block in the next tick.",
},
+ SetSavingEnabled =
+ {
+ Params =
+ {
+ {
+ Name = "SavingEnabled",
+ Type = "boolean",
+ },
+ },
+ Notes = "Sets whether saving chunk data is enabled. If disabled, dirty chunks will stay in memory forever, which may cause performance and stability issues.",
+ },
SetShouldUseChatPrefixes =
{
Params =
@@ -2917,33 +2948,56 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
},
SpawnBoat =
{
- Params =
{
+ Params =
{
- Name = "X",
- Type = "number",
- },
- {
- Name = "Y",
- Type = "number",
- },
- {
- Name = "Z",
- Type = "number",
+ {
+ Name = "Position",
+ Type = "Vector3d",
+ },
+ {
+ Name = "Material",
+ Type = "cBoat#eMaterial",
+ },
},
+ Returns =
{
- Name = "Material",
- Type = "cBoat#eMaterial",
+ {
+ Name = "EntityID",
+ Type = "number",
+ },
},
+ Notes = "Spawns a {{cBoat|boat}} at the specific coordinates. Returns the EntityID of the new boat, or {{cEntity#INVALID_ID|cEntity#INVALID_ID}} if no boat was created.",
},
- Returns =
{
+ Params =
{
- Name = "EntityID",
- Type = "number",
+ {
+ Name = "X",
+ Type = "number",
+ },
+ {
+ Name = "Y",
+ Type = "number",
+ },
+ {
+ Name = "Z",
+ Type = "number",
+ },
+ {
+ Name = "Material",
+ Type = "cBoat#eMaterial",
+ },
},
+ Returns =
+ {
+ {
+ Name = "EntityID",
+ Type = "number",
+ },
+ },
+ Notes = "Spawns a {{cBoat|boat}} at the specific coordinates. Returns the EntityID of the new boat, or {{cEntity#INVALID_ID|cEntity#INVALID_ID}} if no boat was created. (DEPRECATED, use vector-parametered version)",
},
- Notes = "Spawns a {{cBoat|boat}} at the specific coordinates. Returns the EntityID of the new boat, or {{cEntity#INVALID_ID|cEntity#INVALID_ID}} if no boat was created.",
},
SpawnExperienceOrb =
{
@@ -3220,37 +3274,64 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
},
SpawnPrimedTNT =
{
- Params =
{
+ Params =
{
- Name = "X",
- Type = "number",
- },
- {
- Name = "Y",
- Type = "number",
- },
- {
- Name = "Z",
- Type = "number",
- },
- {
- Name = "FuseTicks",
- Type = "number",
+ {
+ Name = "Position",
+ Type = "Vector3d",
+ },
+ {
+ Name = "FuseTicks",
+ Type = "number",
+ },
+ {
+ Name = "InitialVelocityCoeff",
+ Type = "number",
+ },
},
+ Returns =
{
- Name = "InitialVelocityCoeff",
- Type = "number",
+ {
+ Name = "EntityID",
+ Type = "number",
+ },
},
+ Notes = "Spawns a {{cTNTEntity|primed TNT entity}} at the specified coords, with the given fuse ticks. The entity gets a random speed multiplied by the InitialVelocityCoeff, 1 being the default value. Returns the EntityID of the new spawned primed tnt, or {{cEntity#INVALID_ID|cEntity#INVALID_ID}} if no primed tnt was created.",
},
- Returns =
{
+ Params =
{
- Name = "EntityID",
- Type = "number",
+ {
+ Name = "X",
+ Type = "number",
+ },
+ {
+ Name = "Y",
+ Type = "number",
+ },
+ {
+ Name = "Z",
+ Type = "number",
+ },
+ {
+ Name = "FuseTicks",
+ Type = "number",
+ },
+ {
+ Name = "InitialVelocityCoeff",
+ Type = "number",
+ },
+ },
+ Returns =
+ {
+ {
+ Name = "EntityID",
+ Type = "number",
+ },
},
+ Notes = "Spawns a {{cTNTEntity|primed TNT entity}} at the specified coords, with the given fuse ticks. The entity gets a random speed multiplied by the InitialVelocityCoeff, 1 being the default value. Returns the EntityID of the new spawned primed tnt, or {{cEntity#INVALID_ID|cEntity#INVALID_ID}} if no primed tnt was created. (DEPRECATED, use vector-parametered version)",
},
- Notes = "Spawns a {{cTNTEntity|primed TNT entity}} at the specified coords, with the given fuse ticks. The entity gets a random speed multiplied by the InitialVelocityCoeff, 1 being the default value. Returns the EntityID of the new spawned primed tnt, or {{cEntity#INVALID_ID|cEntity#INVALID_ID}} if no primed tnt was created.",
},
TryGetHeight =
{