Skip to content

Commit faa075c

Browse files
committed
Added javadocs to entrypoint classes explaining the names of the entrypoints in fabric.mod.json.
1 parent 8b546da commit faa075c

7 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package turniplabs.halplibe.util;
22

33
public interface BlockInitEntrypoint {
4+
/**
5+
* The entrypoint name inside {@code fabric.mod.json} is {@code afterBlockInit}.
6+
*/
47
void afterBlockInit();
58
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
package turniplabs.halplibe.util;
22

3+
34
public interface ClientStartEntrypoint {
5+
/**
6+
* The entrypoint name inside {@code fabric.mod.json} is {@code beforeClientStart}.
7+
*/
48
void beforeClientStart();
59

10+
/**
11+
* The entrypoint name inside {@code fabric.mod.json} is {@code afterClientStart}.
12+
*/
613
void afterClientStart();
714
}

src/main/java/turniplabs/halplibe/util/GameStartEntrypoint.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
public interface GameStartEntrypoint {
44

5+
/**
6+
* The entrypoint name inside {@code fabric.mod.json} is {@code beforeGameStart}.
7+
*/
58
void beforeGameStart();
69

10+
/**
11+
* The entrypoint name inside {@code fabric.mod.json} is {@code afterGameStart}.
12+
*/
713
void afterGameStart();
814
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package turniplabs.halplibe.util;
22

3+
34
public interface ItemInitEntrypoint {
5+
/**
6+
* The entrypoint name inside {@code fabric.mod.json} is {@code afterItemInit}.
7+
*/
48
void afterItemInit();
59
}

src/main/java/turniplabs/halplibe/util/ModelEntrypoint.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,24 @@
1010

1111
@Environment(EnvType.CLIENT)
1212
public interface ModelEntrypoint {
13+
/**
14+
* The entrypoint name inside {@code fabric.mod.json} is {@code initModels}.
15+
*/
1316
void initBlockModels(BlockModelDispatcher dispatcher);
17+
/**
18+
* The entrypoint name inside {@code fabric.mod.json} is {@code initModels}.
19+
*/
1420
void initItemModels(ItemModelDispatcher dispatcher);
21+
/**
22+
* The entrypoint name inside {@code fabric.mod.json} is {@code initModels}.
23+
*/
1524
void initEntityModels(EntityRenderDispatcher dispatcher);
25+
/**
26+
* The entrypoint name inside {@code fabric.mod.json} is {@code initModels}.
27+
*/
1628
void initTileEntityModels(TileEntityRenderDispatcher dispatcher);
29+
/**
30+
* The entrypoint name inside {@code fabric.mod.json} is {@code initModels}.
31+
*/
1732
void initBlockColors(BlockColorDispatcher dispatcher);
1833
}

src/main/java/turniplabs/halplibe/util/OptionsInitEntrypoint.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
import net.minecraft.client.option.GameSettings;
44

55
public interface OptionsInitEntrypoint {
6+
/**
7+
* The entrypoint name inside {@code fabric.mod.json} is {@code initOptions}.
8+
*/
69
void initOptions(GameSettings settings);
710
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
package turniplabs.halplibe.util;
22

33
public interface RecipeEntrypoint {
4+
/**
5+
* The entrypoint name inside {@code fabric.mod.json} is {@code recipesReady}.
6+
*/
47
void onRecipesReady();
58

9+
/**
10+
* The entrypoint name inside {@code fabric.mod.json} is {@code recipesReady}.
11+
*/
612
void initNamespaces();
713
}

0 commit comments

Comments
 (0)