Skip to content

Commit 66c5c14

Browse files
committed
3.1.0b126 and 3.1.1b127 changes separation, some more since marks
1 parent 60d6c49 commit 66c5c14

9 files changed

Lines changed: 24 additions & 22 deletions

File tree

api/core-engine/Block.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ declare namespace Block {
781781
color_source?: ColorSource,
782782
/**
783783
* Specifies sounds of the block, one of {@link Block.Sound}.
784-
* @since 2.0.2b25
784+
* @since 2.0.2b25 (from 3.1.0b126 can be custom from resource packs)
785785
*/
786786
sound?: Sound,
787787
/**

api/core-engine/Dimensions.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ declare namespace Dimensions {
3434
* (like in the End or Nether).
3535
* @param hasSkyLight if true, the sky produces light in the dimension
3636
* @returns Reference to itself to be used in sequential calls.
37-
* @since 3.1.1b127 (existed but not working until it)
37+
* @since 3.1.0b126 (existed but not working until it)
3838
*/
3939
setHasSkyLight(hasSkyLight: boolean): CustomDimension;
4040

@@ -126,70 +126,70 @@ declare namespace Dimensions {
126126
/**
127127
* Sets, can liquid evaporate or not.
128128
* @param evaporates if true water will evaporate just like nether
129-
* @since 3.1.1b127
129+
* @since 3.1.0b126
130130
*/
131131
setEvaporatesLiquids(evaporates: boolean): CustomDimension;
132132

133133
/**
134134
* Sets, has world tick of weather seasons or not.
135135
* @param seasons if true weather will work
136-
* @since 3.1.1b127
136+
* @since 3.1.0b126
137137
*/
138138
setWeatherSeasons(seasons: boolean): CustomDimension;
139139

140140
/**
141141
* Sets behavior with interacting between player and bed like a nether or end.
142142
* @param explode if true player can't sleep on beds
143-
* @since 3.1.1b127
143+
* @since 3.1.0b126
144144
*/
145145
setBedExplodesOnSleep(explode: boolean): CustomDimension;
146146

147147
/**
148148
* Sets visualization of sky like overworld.
149149
* @param enabled
150-
* @since 3.1.1b127
150+
* @since 3.1.0b126
151151
*/
152152
setSkyAtmosphereEnabled(enabled: boolean): CustomDimension;
153153

154154
/**
155155
* Sets height of clouds.
156156
* @param height height by "y" angle
157-
* @since 3.1.1b127
157+
* @since 3.1.0b126
158158
*/
159159
setCloudHeight(height: number): CustomDimension;
160160

161161
/**
162162
* Overrides time of day by interval [0, 1].
163163
* @param interval number between 0 and 1,
164164
* e.g. 0.25 represents noon, 0.75 midnight
165-
* @since 3.1.1b127
165+
* @since 3.1.0b126
166166
*/
167167
setTimeOfDay(interval: number): CustomDimension;
168168

169169
/**
170170
* Multiplies time for dimension based on world one
171171
* (e.g., {@link World.getWorldTime}() * amplifier).
172172
* @param amplifier any number
173-
* @since 3.1.1b127
173+
* @since 3.1.0b126
174174
*/
175175
setTimeOfDayAmplifier(amplifier: number): CustomDimension;
176176

177177
/**
178178
* Resets custom time of day interval.
179-
* @since 3.1.1b127
179+
* @since 3.1.0b126
180180
*/
181181
resetTimeOfDay(): CustomDimension;
182182

183183
/**
184184
* Sets star brightness.
185185
* @param interval number between 0 and 1
186-
* @since 3.1.1b127
186+
* @since 3.1.0b126
187187
*/
188188
setStarBrightness(interval: number): CustomDimension;
189189

190190
/**
191191
* Resets star brightness.
192-
* @since 3.1.1b127
192+
* @since 3.1.0b126
193193
*/
194194
resetStarBrightness(): CustomDimension;
195195
}
@@ -630,15 +630,15 @@ declare namespace Dimensions {
630630
* Returns number between 0 and 7 (inclusive), which represents chance to spawn
631631
* slimes, equipped mobs, etc. (see {@link https://minecraft.wiki/w/Moon})
632632
* @param dimensionId numeric id of the dimension
633-
* @since 3.1.1b127
633+
* @since 3.1.0b126
634634
*/
635635
function getMoonPhase(dimensionId: number): number;
636636

637637
/**
638638
* Returns floating number in range [0, 1], which represents chance to spawn
639639
* slimes, equipped mobs, etc. (see {@link https://minecraft.wiki/w/Moon})
640640
* @param dimensionId numeric id of the dimension
641-
* @since 3.1.1b127
641+
* @since 3.1.0b126
642642
*/
643643
function getMoonBrightness(dimensionId: number): number;
644644
}

api/core-engine/Entity.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ declare namespace Entity {
826826
* Object used to build path and move mobs to the required coordinates using
827827
* specified parameters. All the setters return current {@link Entity.PathNavigation}
828828
* instance to be able to produce chained calls.
829-
* @since 2.0.3b33
829+
* @since 2.0.3b33 (broken in 3.0.0b124, 3.1.0b125)
830830
*/
831831
interface PathNavigation {
832832
/**

api/core-engine/Game.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ declare namespace Game {
7878

7979
/**
8080
* @returns Current level game mode, one of the {@link EGameMode} values.
81-
* @since 3.1.1b127
8281
*/
8382
function getGameMode(): number;
8483

api/core-engine/IDRegistry.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ declare namespace IDRegistry {
2525
* and in some other block-related functions.
2626
* @param name string block ID; Inner Core converts it to
2727
* block_<name> as minecraft vanilla block ID to avoid string ID clashes
28+
* (since 3.1.0b126 support namespaces, should be namespace:snake_case)
2829
* @returns Numeric block ID.
2930
*/
3031
function genBlockID(name: string): number;
@@ -34,6 +35,7 @@ declare namespace IDRegistry {
3435
* and in some other item-related functions.
3536
* @param name string item ID; Inner Core converts it to
3637
* item_<name> as minecraft vanilla item ID to avoid string ID clashes
38+
* (since 3.1.0b126 support namespaces, should be namespace:snake_case)
3739
* @returns Numeric item ID.
3840
*/
3941
function genItemID(name: string): number;
@@ -45,6 +47,7 @@ declare namespace IDRegistry {
4547
/**
4648
* Returns identifier namespace, which consist of both
4749
* item and block name IDs to numeric conversion.
50+
* @since 3.1.0b126
4851
*/
4952
function useNamespace(namespace: string): Namespace;
5053

api/core-engine/UI.IWindow.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ declare namespace UI {
6565
*/
6666
getStyle(): Style;
6767
/**
68-
* @since 3.1.1b127 (availabled for all windows, before it appears
68+
* @since 3.1.0b126 (availabled for all windows, before it appears
6969
* to be only in {@link TabbedWindow} and {@link StandardWindow})
7070
*/
7171
getStyleSafe(): Style;
@@ -455,7 +455,7 @@ declare namespace UI {
455455
getStringProperty(name: string, fallback: string): string;
456456
getBooleanProperty(name: string, fallback: boolean): boolean;
457457
/**
458-
* @since 3.1.1b127
458+
* @since 3.1.0b126
459459
*/
460460
getColorProperty(valueOrProperty: FontColor, defaultValue?: FontColor): number;
461461
setProperty(name: string, value: any): void;

api/core-engine/UI.Window.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ declare namespace UI {
208208
*/
209209
getStyle(): Style;
210210
/**
211-
* @since 3.1.1b127
211+
* @since 3.1.0b126
212212
*/
213213
getStyleSafe(): Style;
214214
/**

api/core-engine/UI.WindowGroup.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ declare namespace UI {
133133
*/
134134
getStyle(): Style;
135135
/**
136-
* @since 3.1.1b127
136+
* @since 3.1.0b126
137137
*/
138138
getStyleSafe(): Style;
139139
setBlockingBackground(bb: boolean): void;

api/core-engine/UI.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ declare namespace UI {
99

1010
/**
1111
* Hex color like `#ffffff`or color names like a `red`, `pink` and another or `[r, g, b, a?]` array.
12-
* @since 3.1.1b127
12+
* @since 3.1.0b126
1313
*/
1414
type FontColor = string | [r: number, g: number, b: number, a?: number] | number;
1515

@@ -191,7 +191,7 @@ declare namespace UI {
191191
* @param value hex-string, rgba array or names of color in a string format.
192192
* @param defaultValue returns if result is wrong, even if it fails,
193193
* transparent (`0`) is returned
194-
* @since 3.1.1b127
194+
* @since 3.1.0b126
195195
*/
196196
function parseColor(value: FontColor, defaultValue?: FontColor): number;
197197
}

0 commit comments

Comments
 (0)