|
| 1 | +# Biomes |
| 2 | + |
| 3 | +Minecraft Biomes: |
| 4 | + |
| 5 | +```json |
| 6 | +{ |
| 7 | + "id": 0, |
| 8 | + "name": "the_void", |
| 9 | + "category": "none", |
| 10 | + "temperature": 0.5, |
| 11 | + "precipitation": "none", |
| 12 | + "dimension": "overworld", |
| 13 | + "displayName": "The Void", |
| 14 | + "color": 0, |
| 15 | + "rainfall": 0.5 |
| 16 | +} |
| 17 | +``` |
| 18 | + |
| 19 | +## Usage |
| 20 | + |
| 21 | +### (GET) **`/api/biome`** |
| 22 | + |
| 23 | +Returns an array of all biome objects. |
| 24 | + |
| 25 | +```json |
| 26 | +[ |
| 27 | + { |
| 28 | + "id": 0, |
| 29 | + "name": "the_void", |
| 30 | + "category": "none", |
| 31 | + "temperature": 0.5, |
| 32 | + "precipitation": "none", |
| 33 | + "dimension": "overworld", |
| 34 | + "displayName": "The Void", |
| 35 | + "color": 0, |
| 36 | + "rainfall": 0.5 |
| 37 | + }, |
| 38 | + { |
| 39 | + "id": 1, |
| 40 | + "name": "plains", |
| 41 | + "category": "plains", |
| 42 | + "temperature": 0.8, |
| 43 | + "precipitation": "rain", |
| 44 | + "dimension": "overworld", |
| 45 | + "displayName": "Plains", |
| 46 | + "color": 9286496, |
| 47 | + "rainfall": 0.4 |
| 48 | + }, |
| 49 | + ... |
| 50 | +] |
| 51 | +``` |
| 52 | + |
| 53 | +### (GET) **`/api/biome/search?q=<query>`** |
| 54 | + |
| 55 | +Returns an array of biome objects whose fields satisfy the query `/search?q=<query>` |
| 56 | + |
| 57 | +_(query may either be of type 'string' or 'number')_ |
| 58 | + |
| 59 | +`/api/biome/search?q=void` |
| 60 | + |
| 61 | +```json |
| 62 | +[ |
| 63 | + { |
| 64 | + "id": 0, |
| 65 | + "name": "the_void", |
| 66 | + "category": "none", |
| 67 | + "temperature": 0.5, |
| 68 | + "precipitation": "none", |
| 69 | + "dimension": "overworld", |
| 70 | + "displayName": "The Void", |
| 71 | + "color": 0, |
| 72 | + "rainfall": 0.5 |
| 73 | + }, |
| 74 | +] |
| 75 | +``` |
| 76 | + |
| 77 | +### (GET) **`/api/biome/:biomeId`** |
| 78 | + |
| 79 | +Returns a single biome item whose `biomeId` exists |
| 80 | + |
| 81 | +_(`:biomeId` may only be of type 'number')_ |
| 82 | + |
| 83 | +`/api/biome/0` |
| 84 | + |
| 85 | +```json |
| 86 | +{ |
| 87 | + "id": 0, |
| 88 | + "name": "the_void", |
| 89 | + "category": "none", |
| 90 | + "temperature": 0.5, |
| 91 | + "precipitation": "none", |
| 92 | + "dimension": "overworld", |
| 93 | + "displayName": "The Void", |
| 94 | + "color": 0, |
| 95 | + "rainfall": 0.5 |
| 96 | +} |
| 97 | +``` |
0 commit comments