-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* harvestability * pass 2 * pass 3 * pass 4 * pass 5 (cherry picked from commit 1e6ff72) (cherry picked from commit f69de06)
- Loading branch information
Showing
36 changed files
with
933 additions
and
14 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
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
17 changes: 17 additions & 0 deletions
17
platform/fabric/src/main/java/mcp/mobius/waila/fabric/FabricApiService.java
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,17 @@ | ||
package mcp.mobius.waila.fabric; | ||
|
||
import mcp.mobius.waila.service.ApiService; | ||
import net.fabricmc.fabric.api.mininglevel.v1.MiningLevelManager; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.Tier; | ||
import net.minecraft.world.level.block.Block; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class FabricApiService extends ApiService { | ||
|
||
@Override | ||
public @Nullable TagKey<Block> getTierTag(Tier tier) { | ||
return tier.getLevel() == 0 ? null : MiningLevelManager.getBlockTag(tier.getLevel()); | ||
} | ||
|
||
} |
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
2 changes: 1 addition & 1 deletion
2
...fabric/src/main/resources/META-INF/services/mcp.mobius.waila.api.__internal__.IApiService
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 |
---|---|---|
@@ -1 +1 @@ | ||
mcp.mobius.waila.service.ApiService | ||
mcp.mobius.waila.fabric.FabricApiService |
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
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
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
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
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
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
17 changes: 17 additions & 0 deletions
17
platform/quilt/src/main/java/mcp/mobius/waila/quilt/QuiltApiService.java
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,17 @@ | ||
package mcp.mobius.waila.quilt; | ||
|
||
import mcp.mobius.waila.service.ApiService; | ||
import net.fabricmc.fabric.api.mininglevel.v1.MiningLevelManager; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.Tier; | ||
import net.minecraft.world.level.block.Block; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class QuiltApiService extends ApiService { | ||
|
||
@Override | ||
public @Nullable TagKey<Block> getTierTag(Tier tier) { | ||
return tier.getLevel() == 0 ? null : MiningLevelManager.getBlockTag(tier.getLevel()); | ||
} | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
.../quilt/src/main/resources/META-INF/services/mcp.mobius.waila.api.__internal__.IApiService
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 |
---|---|---|
@@ -1 +1 @@ | ||
mcp.mobius.waila.service.ApiService | ||
mcp.mobius.waila.quilt.QuiltApiService |
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 |
---|---|---|
|
@@ -49,7 +49,7 @@ | |
}, | ||
{ | ||
"id" : "badpackets", | ||
"versions": ">=0.4.1" | ||
"versions": ">=0.5.6" | ||
} | ||
] | ||
}, | ||
|
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
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
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
Oops, something went wrong.