@@ -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> {
|
||||||
|
|||||||
@@ -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> ->
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user