Commit a03761f 1 parent 92431c5 commit a03761f Copy full SHA for a03761f
File tree 3 files changed +30
-1
lines changed
src/main/java/org/polaris_bear/wild_wind
3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 23
23
import net .minecraft .world .level .Level ;
24
24
import net .minecraft .world .level .ServerLevelAccessor ;
25
25
import net .minecraft .world .level .block .state .BlockState ;
26
+ import org .jetbrains .annotations .NotNull ;
26
27
import org .jetbrains .annotations .Nullable ;
27
28
import org .polaris_bear .wild_wind .WildWindConfig ;
28
29
import org .polaris_bear .wild_wind .common .entity .goal .FireflyBaseGoal ;
@@ -97,7 +98,7 @@ public boolean canBeLeashed() {
97
98
}
98
99
99
100
@ Override
100
- public void readAdditionalSaveData (CompoundTag compound ) {
101
+ public void readAdditionalSaveData (@ NotNull CompoundTag compound ) {
101
102
super .readAdditionalSaveData (compound );
102
103
this .setRoost (compound .getBoolean ("roost" ));
103
104
this .setBaby (compound .getInt ("baby" ));
Original file line number Diff line number Diff line change
1
+ package org .polaris_bear .wild_wind .test ;
2
+
3
+ import net .minecraft .gametest .framework .GameTest ;
4
+ import net .minecraft .gametest .framework .GameTestHelper ;
5
+ import net .neoforged .neoforge .gametest .GameTestHolder ;
6
+ import org .polaris_bear .wild_wind .WildWindMod ;
7
+
8
+ @ GameTestHolder (WildWindMod .MOD_ID )
9
+ public class Test1 {
10
+ @ GameTest
11
+ public static void test (GameTestHelper helper ) {
12
+
13
+ }
14
+ }
Original file line number Diff line number Diff line change
1
+ package org .polaris_bear .wild_wind .test ;
2
+
3
+ import net .neoforged .bus .api .SubscribeEvent ;
4
+ import net .neoforged .fml .common .EventBusSubscriber ;
5
+ import net .neoforged .neoforge .event .RegisterGameTestsEvent ;
6
+ import org .polaris_bear .wild_wind .WildWindMod ;
7
+
8
+ @ EventBusSubscriber (bus = EventBusSubscriber .Bus .MOD , modid = WildWindMod .MOD_ID )
9
+ public class WildWindGameTest {
10
+ @ SubscribeEvent
11
+ public static void registerTest (RegisterGameTestsEvent event ) {
12
+ event .register (Test1 .class );
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments