-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/snapshot' into dev/master
- Loading branch information
Showing
48 changed files
with
908 additions
and
414 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
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,16 +1,16 @@ | ||
# CurseForge | ||
cf.endpoint = minecraft.curseforge.com | ||
cf.projectId = 440979 | ||
cf.releaseType = release | ||
cf.gameVersion = 1.20, 1.20.1 | ||
cf.releaseType = beta | ||
cf.gameVersion = 1.20.2-Snapshot | ||
cf.loader = Fabric | ||
cf.require = fabric-api, badpackets | ||
cf.optional = modmenu, roughly-enough-items, jei, emi | ||
|
||
# Modrinth | ||
mr.projectId = 6AQIaxuO | ||
mr.releaseType = release | ||
mr.gameVersion = 1.20, 1.20.1 | ||
mr.releaseType = beta | ||
mr.gameVersion = 1.20.2-pre2 | ||
mr.loader = fabric | ||
mr.require = P7dR8mSH, ftdbN0KK | ||
mr.optional = mOgUt4GM, nfn13YXA, fRiHVvU7 |
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
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
35 changes: 35 additions & 0 deletions
35
src/api/java/mcp/mobius/waila/api/component/SpriteComponent.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,35 @@ | ||
package mcp.mobius.waila.api.component; | ||
|
||
import mcp.mobius.waila.api.ITooltipComponent; | ||
import mcp.mobius.waila.api.__internal__.ApiSide; | ||
import net.minecraft.client.gui.GuiGraphics; | ||
import net.minecraft.resources.ResourceLocation; | ||
|
||
@ApiSide.ClientOnly | ||
public class SpriteComponent implements ITooltipComponent { | ||
|
||
public SpriteComponent(ResourceLocation id, int width, int height) { | ||
this.id = id; | ||
this.width = width; | ||
this.height = height; | ||
} | ||
|
||
private final ResourceLocation id; | ||
private final int width, height; | ||
|
||
@Override | ||
public int getWidth() { | ||
return width; | ||
} | ||
|
||
@Override | ||
public int getHeight() { | ||
return height; | ||
} | ||
|
||
@Override | ||
public void render(GuiGraphics ctx, int x, int y, float delta) { | ||
ctx.blitSprite(id, x, y, width, height); | ||
} | ||
|
||
} |
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.