@@ -8,8 +8,10 @@ import dev.sterner.registry.VoidBoundItemRegistry
8
8
import dev.sterner.registry.VoidBoundPacketRegistry
9
9
import io.github.fabricators_of_create.porting_lib.event.common.BlockEvents
10
10
import net.fabricmc.fabric.api.networking.v1.PlayerLookup
11
+ import net.minecraft.ChatFormatting
11
12
import net.minecraft.core.BlockPos
12
13
import net.minecraft.network.chat.Component
14
+ import net.minecraft.network.chat.Style
13
15
import net.minecraft.server.level.ServerLevel
14
16
import net.minecraft.tags.BlockTags
15
17
import net.minecraft.world.InteractionHand
@@ -27,6 +29,7 @@ import net.minecraft.world.level.block.state.BlockState
27
29
import net.minecraft.world.phys.Vec3
28
30
import org.joml.Vector3f
29
31
import team.lodestar.lodestone.systems.item.tools.magic.MagicAxeItem
32
+ import java.awt.Color
30
33
31
34
32
35
open class TidecutterItem (
@@ -42,6 +45,21 @@ open class TidecutterItem(
42
45
properties
43
46
), UpgradableTool {
44
47
48
+ override fun appendHoverText (
49
+ stack : ItemStack ,
50
+ level : Level ? ,
51
+ tooltipComponents : MutableList <Component >,
52
+ isAdvanced : TooltipFlag
53
+ ) {
54
+ VoidBoundUtils .addNetheritedTooltip(stack, tooltipComponents)
55
+ tooltipComponents.add(
56
+ Component .translatable(" Not yet implemented" ).withStyle(ChatFormatting .ITALIC ).withStyle(
57
+ Style .EMPTY .withColor(Color .red.rgb)
58
+ )
59
+ )
60
+
61
+ super .appendHoverText(stack, level, tooltipComponents, isAdvanced)
62
+ }
45
63
46
64
override fun getDestroySpeed (stack : ItemStack , state : BlockState ): Float {
47
65
return super .getDestroySpeed(stack, state) + getExtraMiningSpeed(stack)
@@ -66,16 +84,6 @@ open class TidecutterItem(
66
84
super .onUseTick(level, livingEntity, stack, remainingUseDuration)
67
85
}
68
86
69
- override fun appendHoverText (
70
- stack : ItemStack ,
71
- level : Level ? ,
72
- tooltipComponents : MutableList <Component >,
73
- isAdvanced : TooltipFlag
74
- ) {
75
- VoidBoundUtils .addNetheritedTooltip(stack, tooltipComponents)
76
- super .appendHoverText(stack, level, tooltipComponents, isAdvanced)
77
- }
78
-
79
87
companion object {
80
88
81
89
/* *
0 commit comments