-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin IMPL of fishing net custom tool tips
Added: - Fishing net tooltip data class - Callback to handle the tooltip
- Loading branch information
dragoncommands
committed
Oct 4, 2023
1 parent
0086241
commit 4b2b760
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/client/kotlin/dev/hybridlabs/aquatic/client/item/FishingNetTooltip.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package dev.hybridlabs.aquatic.client.item | ||
|
||
import net.fabricmc.fabric.api.client.item.v1.ItemTooltipCallback | ||
import net.minecraft.client.item.TooltipContext | ||
import net.minecraft.item.ItemStack | ||
import net.minecraft.text.Text | ||
|
||
class FishingNetTooltip : ItemTooltipCallback { | ||
override fun getTooltip(stack: ItemStack?, context: TooltipContext?, lines: MutableList<Text>?) { | ||
TODO("Not yet implemented") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/kotlin/dev/hybridlabs/aquatic/item/FishingNetTooltipData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dev.hybridlabs.aquatic.item | ||
|
||
import net.minecraft.client.item.TooltipData | ||
|
||
class FishingNetTooltipData : TooltipData { | ||
|
||
} |