Skip to content

Commit fa79d00

Browse files
committed
remove bad code
1 parent 070d3d6 commit fa79d00

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

src/main/kotlin/dev/sterner/common/item/equipment/GalesEdgeItem.kt

+9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ package dev.sterner.common.item.equipment
22

33
import dev.sterner.api.util.VoidBoundUtils
44
import dev.sterner.registry.VoidBoundParticleTypeRegistry
5+
import net.minecraft.ChatFormatting
56
import net.minecraft.network.chat.Component
7+
import net.minecraft.network.chat.Style
68
import net.minecraft.util.Mth
79
import net.minecraft.world.InteractionHand
810
import net.minecraft.world.InteractionResultHolder
@@ -23,6 +25,7 @@ import team.lodestar.lodestone.systems.particle.SimpleParticleOptions
2325
import team.lodestar.lodestone.systems.particle.builder.WorldParticleBuilder
2426
import team.lodestar.lodestone.systems.particle.data.GenericParticleData
2527
import team.lodestar.lodestone.systems.particle.render_types.LodestoneWorldParticleRenderType
28+
import java.awt.Color
2629
import kotlin.math.cos
2730
import kotlin.math.sin
2831

@@ -115,6 +118,12 @@ open class GalesEdgeItem(
115118
isAdvanced: TooltipFlag
116119
) {
117120
VoidBoundUtils.addNetheritedTooltip(stack, tooltipComponents)
121+
tooltipComponents.add(
122+
Component.translatable("Not yet implemented").withStyle(ChatFormatting.ITALIC).withStyle(
123+
Style.EMPTY.withColor(Color.red.rgb)
124+
)
125+
)
126+
118127
super.appendHoverText(stack, level, tooltipComponents, isAdvanced)
119128
}
120129
}

src/main/kotlin/dev/sterner/common/item/equipment/TidecutterItem.kt

+18-10
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import dev.sterner.registry.VoidBoundItemRegistry
88
import dev.sterner.registry.VoidBoundPacketRegistry
99
import io.github.fabricators_of_create.porting_lib.event.common.BlockEvents
1010
import net.fabricmc.fabric.api.networking.v1.PlayerLookup
11+
import net.minecraft.ChatFormatting
1112
import net.minecraft.core.BlockPos
1213
import net.minecraft.network.chat.Component
14+
import net.minecraft.network.chat.Style
1315
import net.minecraft.server.level.ServerLevel
1416
import net.minecraft.tags.BlockTags
1517
import net.minecraft.world.InteractionHand
@@ -27,6 +29,7 @@ import net.minecraft.world.level.block.state.BlockState
2729
import net.minecraft.world.phys.Vec3
2830
import org.joml.Vector3f
2931
import team.lodestar.lodestone.systems.item.tools.magic.MagicAxeItem
32+
import java.awt.Color
3033

3134

3235
open class TidecutterItem(
@@ -42,6 +45,21 @@ open class TidecutterItem(
4245
properties
4346
), UpgradableTool {
4447

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+
}
4563

4664
override fun getDestroySpeed(stack: ItemStack, state: BlockState): Float {
4765
return super.getDestroySpeed(stack, state) + getExtraMiningSpeed(stack)
@@ -66,16 +84,6 @@ open class TidecutterItem(
6684
super.onUseTick(level, livingEntity, stack, remainingUseDuration)
6785
}
6886

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-
7987
companion object {
8088

8189
/**

0 commit comments

Comments
 (0)