mloeschenkohl 2 anos atrás
pai
commit
622b120dba
2 arquivos alterados com 131 adições e 90 exclusões
  1. 12 2
      docu_core.php
  2. 119 88
      docu_minecraft.php

+ 12 - 2
docu_core.php

@@ -301,6 +301,16 @@
             <td>allocatedmemory()</td>
         </tr>
     </table>
+    <table>
+        <tr>
+            <th class="command">iterator</th>
+            <th class="desc">returns an iterator</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>iterator(collection / list / set)</td>
+        </tr>
+    </table>
     <table>
         <tr>
             <th class="command">hasNext</th>
@@ -911,7 +921,7 @@
     </table>
     <table>
         <tr>
-            <th class="command">list.iterator</th>
+            <th class="command">list.iterator (deprecated)</th>
             <th class="desc">returns the iterator of a list</th>
         </tr>
         <tr>
@@ -1147,7 +1157,7 @@
     </table>
     <table>
         <tr>
-            <th class="command">set.iterator</th>
+            <th class="command">set.iterator (deprecated)</th>
             <th class="desc">returns the iterator of a set</th>
         </tr>
         <tr>

+ 119 - 88
docu_minecraft.php

@@ -855,6 +855,16 @@
             <td class="bold">Format</td>
             <td>block.hasTag(tag, Block)</td>
         </tr>
+    </table>
+	<table>
+        <tr>
+            <th class="command">block.getProperties</th>
+            <th class="desc">returns a collection of properties</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>block.getProperties(location)</td>
+        </tr>
     </table>
 	<table>
         <tr>
@@ -872,12 +882,42 @@
     </table>
 	<table>
         <tr>
-            <th class="command">block.getState</th>
-            <th class="desc">returns the state as double, string or boolean, demanding on the property</th>
+            <th class="command">block.property.getValue</th>
+            <th class="desc">returns the value of a property as double, string or boolean, demanding on the property</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>block.property.getValue(location, property)</td>
+        </tr>
+    </table>
+	<table>
+        <tr>
+            <th class="command">block.property.setInt</th>
+            <th class="desc">sets the value of a property</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>block.property.setInt(location, property, int)</td>
+        </tr>
+    </table>
+	<table>
+        <tr>
+            <th class="command">block.property.setBool</th>
+            <th class="desc">sets the value of a property</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>block.property.setBool(location, property, boolean)</td>
+        </tr>
+    </table>
+	<table>
+        <tr>
+            <th class="command">block.property.setEnum</th>
+            <th class="desc">sets the value of a property</th>
         </tr>
         <tr>
             <td class="bold">Format</td>
-            <td>block.getState(location, property)</td>
+            <td>block.property.setEnum(location, property, string))</td>
         </tr>
     </table>
 	<table>
@@ -3866,25 +3906,6 @@
             <td>entity.getLocation(entity / player)</td>
         </tr>
     </table>
-    <table>
-        <tr>
-            <th class="command">entity.setHealth</th>
-            <th class="desc">sets the health points for an entity</th>
-        </tr>
-        <tr>
-            <td class="bold">Format</td>
-            <td>entity.setHealth(entity / player, amount)</td>
-        </tr>
-    </table>
-    <table>
-        <tr>
-            <th class="command">entity.getHealth</th>
-            <th class="desc">returns the health points from an entity</th>
-        </tr>
-        <tr>
-            <td class="bold">Format</td>
-            <td>entity.getHealth(entity / player)</td>
-        </tr>
     <table>
         <tr>
             <th class="command">entity.teleport</th>
@@ -3929,34 +3950,6 @@
             <td>entity.setInvisible(entity / player, boolean)</td>
         </tr>
     </table>
-    <table>
-        <tr>
-            <th class="command">entity.setEquip</th>
-            <th class="desc">set the equipment of an entity</th>
-        </tr>
-        <tr>
-            <td class="bold">Format</td>
-            <td>entity.setEquip(entity / player, bodypart, itemstack)</td>
-        </tr>
-        <tr>
-            <td class="bold">Info</td>
-            <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
-        </tr>
-    </table>
-    <table>
-        <tr>
-            <th class="command">entity.getEquip</th>
-            <th class="desc">returns the equipment of an entity</th>
-        </tr>
-        <tr>
-            <td class="bold">Format</td>
-            <td>entity.getEquip(entity / player, bodypart)</td>
-        </tr>
-        <tr>
-            <td class="bold">Arguments</td>
-            <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
-        </tr>
-    </table>
     <table>
         <tr>
             <th class="command">entity.clearEffects</th>
@@ -4116,34 +4109,6 @@
             <td class="bold">Format</td>
             <td>entity.spawn(type, location, [daten])</td>
         </tr>
-    </table>
-    <table>
-        <tr>
-            <th class="command">entity.heal</th>
-            <th class="desc">heals an entity</th>
-        </tr>
-        <tr>
-            <td class="bold">Format</td>
-            <td>entity.heal(entity, heal_amount)</td>
-        </tr>
-		<tr>
-            <td class="bold">Info</td>
-            <td>triggers events on the next server tick</td>
-        </tr>
-    </table>
-	<table>
-        <tr>
-            <th class="command">entity.damage</th>
-            <th class="desc">damages an entity</th>
-        </tr>
-        <tr>
-            <td class="bold">Format</td>
-            <td>entity.damage(entity, damage_amount, [damagesource])</td>
-        </tr>
-		<tr>
-            <td class="bold">Info</td>
-            <td>triggers events on the next server tick</td>
-        </tr>
     </table>
 	<table>
         <tr>
@@ -4232,16 +4197,6 @@
             <td>entity.near(location / entity, radius)</td>
         </tr>
     </table>
-    <table>
-        <tr>
-            <th class="command">entity.fromSource</th>
-            <th class="desc">returns the entity from a damagesource</th>
-        </tr>
-        <tr>
-            <td class="bold">Format</td>
-            <td>entity.fromSource(damagesource)</td>
-        </tr>
-    </table>
     <table>
         <tr>
             <th class="command">entity.getLook</th>
@@ -4331,6 +4286,82 @@
     </table>
 </section>
 <section id="Living">
+    <table>
+        <tr>
+            <th class="command">living.setHealth</th>
+            <th class="desc">sets the health points for an living_entity</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>living.setHealth(living_entity, amount)</td>
+        </tr>
+    </table>
+    <table>
+        <tr>
+            <th class="command">living.getHealth</th>
+            <th class="desc">returns the health points from an living_entity</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>living.getHealth(living_entity)</td>
+        </tr>
+	</table>
+	<table>
+        <tr>
+            <th class="command">living.damage</th>
+            <th class="desc">damages an living_entity</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>living.damage(living_entity, damage_amount, [damagesource])</td>
+        </tr>
+		<tr>
+            <td class="bold">Info</td>
+            <td>triggers events on the next server tick</td>
+        </tr>
+    </table>
+    <table>
+        <tr>
+            <th class="command">living.heal</th>
+            <th class="desc">heals an living_entity</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>living.heal(living_entity, heal_amount)</td>
+        </tr>
+		<tr>
+            <td class="bold">Info</td>
+            <td>triggers events on the next server tick</td>
+        </tr>
+    </table>
+    <table>
+        <tr>
+            <th class="command">living.setEquip</th>
+            <th class="desc">set the equipment of an living_entity</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>living.setEquip(living_entity, bodypart, itemstack)</td>
+        </tr>
+        <tr>
+            <td class="bold">Info</td>
+            <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
+        </tr>
+    </table>
+    <table>
+        <tr>
+            <th class="command">living.getEquip</th>
+            <th class="desc">returns the equipment of an living_entity</th>
+        </tr>
+        <tr>
+            <td class="bold">Format</td>
+            <td>living.getEquip(living_entity, bodypart)</td>
+        </tr>
+        <tr>
+            <td class="bold">Arguments</td>
+            <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
+        </tr>
+    </table>
     <table>
         <tr>
             <th class="command">living.near</th>