generated from QuiltMC/quilt-template-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make GuiTexture and Texture distinct types
Rather than GuiTexture being a child type of Texture. This stops GuiTexture from being used in a place that Texture would be used by accident.
- Loading branch information
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
subprojects/core/src/main/java/net/pixaurora/kit_tunes/impl/ui/texture/AbstractTexture.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,10 @@ | ||
package net.pixaurora.kit_tunes.impl.ui.texture; | ||
|
||
import net.pixaurora.kit_tunes.api.resource.ResourcePath; | ||
import net.pixaurora.kit_tunes.impl.ui.math.Size; | ||
|
||
public interface AbstractTexture { | ||
public ResourcePath path(); | ||
|
||
public Size size(); | ||
} |
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