🐛 fix: explain

Signed-off-by: Pauline <git@ethanlibs.co>
This commit is contained in:
Pauline
2025-02-26 19:49:55 +01:00
committed by Linnea Gräf
parent d176e0a52e
commit d3930d3da3
3 changed files with 9 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ import net.minecraft.world.World
class DrillToolHandler : ToolHandler { class DrillToolHandler : ToolHandler {
override fun test(state: BlockState, world: World, pos: BlockPos): ItemStack { override fun test(state: BlockState, world: World, pos: BlockPos): ItemStack {
TODO("We need to override the existing tool handler tests because they use state.getHardness(world, pos), which doesn't work with Skyblocks NMS fuckery") TODO("We need to override the existing tool handler tests because they use state.getHardness(world, pos) instead of using Breaking Power")
} }
override fun getTools(): List<ItemStack> { override fun getTools(): List<ItemStack> {

View File

@@ -12,7 +12,10 @@ import net.minecraft.util.Identifier
class SkyblockProgressProvider : IClientExtensionProvider<ProgressView.Data, ProgressView> { class SkyblockProgressProvider : IClientExtensionProvider<ProgressView.Data, ProgressView> {
// wtf does this do i think its for the little progress bar which breaks in mining fatigue mining system // wtf does this do i think its for the little progress bar which breaks in mining fatigue mining system
// but like this is just copied from the example plugin soo // but like this is just copied from the example plugin soo
// TODO :3 // this is different from the toolhandler/toolprovider, this one adjusts the mining progress bar to
// adjust with skyblock's nms packet fuckery (see pr for references on how those packets probably work)
// so yeah we need to fix that.
// TODO :3 lol
override fun getClientGroups(accessor: Accessor<*>, groups: List<ViewGroup<ProgressView.Data>>): List<ClientViewGroup<ProgressView>> { override fun getClientGroups(accessor: Accessor<*>, groups: List<ViewGroup<ProgressView.Data>>): List<ClientViewGroup<ProgressView>> {
return ClientViewGroup.map(groups, ProgressView::read, return ClientViewGroup.map(groups, ProgressView::read,
BiConsumer { group: ViewGroup<ProgressView.Data>, clientGroup: ClientViewGroup<ProgressView> -> BiConsumer { group: ViewGroup<ProgressView.Data>, clientGroup: ClientViewGroup<ProgressView> ->

View File

@@ -1,5 +1,6 @@
package moe.nea.firmament.compat.jade package moe.nea.firmament.compat.jade
import snownee.jade.api.IWailaClientRegistration
import snownee.jade.api.ui.IElement import snownee.jade.api.ui.IElement
import snownee.jade.api.ui.IElementHelper import snownee.jade.api.ui.IElementHelper
import net.minecraft.item.ItemStack import net.minecraft.item.ItemStack
@@ -14,3 +15,6 @@ fun String.jadeId(): Identifier = Identifier.of("firmament", this)
// This drill icon should work for CIT resource packs // This drill icon should work for CIT resource packs
val drillItem: ItemStack = Items.PRISMARINE_SHARD.defaultStack.setSkyBlockId(SkyblockId("TITANIUM_DRILL_1")) val drillItem: ItemStack = Items.PRISMARINE_SHARD.defaultStack.setSkyBlockId(SkyblockId("TITANIUM_DRILL_1"))
val drillIcon: IElement = IElementHelper.get().item(drillItem, 0.5f).message(null) val drillIcon: IElement = IElementHelper.get().item(drillItem, 0.5f).message(null)
fun IWailaClientRegistration.registerGemstone(type: String) {
}