File tree 2 files changed +16
-1
lines changed
src/main/java/dev/dubhe/anvilcraft
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ package dev .dubhe .anvilcraft .event ;
2
+
3
+ import dev .dubhe .anvilcraft .item .CrabClawItem ;
4
+ import net .neoforged .bus .api .SubscribeEvent ;
5
+ import net .neoforged .fml .common .EventBusSubscriber ;
6
+ import net .neoforged .neoforge .event .tick .PlayerTickEvent ;
7
+
8
+ @ EventBusSubscriber
9
+ public class PlayerTickEventHandler {
10
+
11
+ @ SubscribeEvent
12
+ public static void onPlayerTick (PlayerTickEvent .Post event ) {
13
+ CrabClawItem .holdingCrabClawIncreasesRange (event .getEntity ());
14
+ }
15
+ }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public CrabClawItem(Properties properties) {
33
33
}
34
34
35
35
/**
36
- * 蟹钳增加交换距离
36
+ * 蟹钳增加交互距离
37
37
*/
38
38
public static void holdingCrabClawIncreasesRange (LivingEntity entity ) {
39
39
if (!(entity instanceof Player player )) return ;
You can’t perform that action at this time.
0 commit comments