File tree Expand file tree Collapse file tree 2 files changed +32
-16
lines changed Expand file tree Collapse file tree 2 files changed +32
-16
lines changed Original file line number Diff line number Diff line change 26
26
/**
27
27
* Model for loading biome definition entries data from JSON.
28
28
*/
29
- final class BiomeDefinitionEntryData implements \JsonSerializable{
29
+ final class BiomeDefinitionEntryData{
30
+ /** @required */
30
31
public ?int $ id ;
32
+
33
+ /** @required */
31
34
public float $ temperature ;
35
+
36
+ /** @required */
32
37
public float $ downfall ;
38
+
39
+ /** @required */
33
40
public float $ redSporeDensity ;
41
+
42
+ /** @required */
34
43
public float $ blueSporeDensity ;
44
+
45
+ /** @required */
35
46
public float $ ashDensity ;
47
+
48
+ /** @required */
36
49
public float $ whiteAshDensity ;
50
+
51
+ /** @required */
37
52
public float $ depth ;
53
+
54
+ /** @required */
38
55
public float $ scale ;
56
+
57
+ /** @required */
39
58
public ColorData $ mapWaterColour ;
59
+
60
+ /** @required */
40
61
public bool $ rain ;
62
+
41
63
/**
64
+ * @required
42
65
* @var string[]
43
66
* @phpstan-var list<string>
44
67
*/
45
68
public array $ tags ;
46
-
47
- /**
48
- * @return mixed[]
49
- */
50
- public function jsonSerialize () : array {
51
- return (array ) $ this ;
52
- }
53
69
}
Original file line number Diff line number Diff line change 26
26
/**
27
27
* Model for loading color data from JSON.
28
28
*/
29
- final class ColorData implements \JsonSerializable{
29
+ final class ColorData{
30
+ /** @required */
30
31
public int $ r ;
32
+
33
+ /** @required */
31
34
public int $ g ;
35
+
36
+ /** @required */
32
37
public int $ b ;
33
- public int $ a ;
34
38
35
- /**
36
- * @return mixed[]
37
- */
38
- public function jsonSerialize () : array {
39
- return (array ) $ this ;
40
- }
39
+ /** @required */
40
+ public int $ a ;
41
41
}
You can’t perform that action at this time.
0 commit comments