Skip to content

Commit

Permalink
remove bad code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsterner committed Sep 17, 2024
1 parent 070d3d6 commit fa79d00
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package dev.sterner.common.item.equipment

import dev.sterner.api.util.VoidBoundUtils
import dev.sterner.registry.VoidBoundParticleTypeRegistry
import net.minecraft.ChatFormatting
import net.minecraft.network.chat.Component
import net.minecraft.network.chat.Style
import net.minecraft.util.Mth
import net.minecraft.world.InteractionHand
import net.minecraft.world.InteractionResultHolder
Expand All @@ -23,6 +25,7 @@ import team.lodestar.lodestone.systems.particle.SimpleParticleOptions
import team.lodestar.lodestone.systems.particle.builder.WorldParticleBuilder
import team.lodestar.lodestone.systems.particle.data.GenericParticleData
import team.lodestar.lodestone.systems.particle.render_types.LodestoneWorldParticleRenderType
import java.awt.Color
import kotlin.math.cos
import kotlin.math.sin

Expand Down Expand Up @@ -115,6 +118,12 @@ open class GalesEdgeItem(
isAdvanced: TooltipFlag
) {
VoidBoundUtils.addNetheritedTooltip(stack, tooltipComponents)
tooltipComponents.add(
Component.translatable("Not yet implemented").withStyle(ChatFormatting.ITALIC).withStyle(
Style.EMPTY.withColor(Color.red.rgb)
)
)

super.appendHoverText(stack, level, tooltipComponents, isAdvanced)
}
}
28 changes: 18 additions & 10 deletions src/main/kotlin/dev/sterner/common/item/equipment/TidecutterItem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import dev.sterner.registry.VoidBoundItemRegistry
import dev.sterner.registry.VoidBoundPacketRegistry
import io.github.fabricators_of_create.porting_lib.event.common.BlockEvents
import net.fabricmc.fabric.api.networking.v1.PlayerLookup
import net.minecraft.ChatFormatting
import net.minecraft.core.BlockPos
import net.minecraft.network.chat.Component
import net.minecraft.network.chat.Style
import net.minecraft.server.level.ServerLevel
import net.minecraft.tags.BlockTags
import net.minecraft.world.InteractionHand
Expand All @@ -27,6 +29,7 @@ import net.minecraft.world.level.block.state.BlockState
import net.minecraft.world.phys.Vec3
import org.joml.Vector3f
import team.lodestar.lodestone.systems.item.tools.magic.MagicAxeItem
import java.awt.Color


open class TidecutterItem(
Expand All @@ -42,6 +45,21 @@ open class TidecutterItem(
properties
), UpgradableTool {

override fun appendHoverText(
stack: ItemStack,
level: Level?,
tooltipComponents: MutableList<Component>,
isAdvanced: TooltipFlag
) {
VoidBoundUtils.addNetheritedTooltip(stack, tooltipComponents)
tooltipComponents.add(
Component.translatable("Not yet implemented").withStyle(ChatFormatting.ITALIC).withStyle(
Style.EMPTY.withColor(Color.red.rgb)
)
)

super.appendHoverText(stack, level, tooltipComponents, isAdvanced)
}

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

override fun appendHoverText(
stack: ItemStack,
level: Level?,
tooltipComponents: MutableList<Component>,
isAdvanced: TooltipFlag
) {
VoidBoundUtils.addNetheritedTooltip(stack, tooltipComponents)
super.appendHoverText(stack, level, tooltipComponents, isAdvanced)
}

companion object {

/**
Expand Down

0 comments on commit fa79d00

Please sign in to comment.