-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version to 0.5.0, fix compatibility with Immersive Portals for V…
…irtual Entity API
- Loading branch information
Showing
22 changed files
with
268 additions
and
55 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
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
62 changes: 62 additions & 0 deletions
62
polymer-resource-pack/src/main/java/eu/pb4/polymer/resourcepack/api/AssetPaths.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,62 @@ | ||
package eu.pb4.polymer.resourcepack.api; | ||
|
||
import net.minecraft.util.Identifier; | ||
|
||
public final class AssetPaths { | ||
public static String PACK_METADATA = "pack.mcmeta"; | ||
public static String PACK_ICON = "pack.png"; | ||
|
||
private AssetPaths() {} | ||
|
||
public static String texture(String namespace, String path) { | ||
return "assets/" + namespace + "/textures/" + path; | ||
} | ||
|
||
public static String model(String namespace, String path) { | ||
return "assets/" + namespace + "/models/" + path; | ||
} | ||
|
||
public static String model(Identifier id) { | ||
return model(id.getNamespace(), id.getPath()); | ||
} | ||
|
||
public static String texture(Identifier id) { | ||
return texture(id.getNamespace(), id.getPath()); | ||
} | ||
|
||
public static String blockModel(Identifier id) { | ||
return model(id.getNamespace(), "block/" + id.getPath() + ".json"); | ||
} | ||
|
||
public static String blockTexture(Identifier id) { | ||
return texture(id.getNamespace(), "block/" + id.getPath() + ".png"); | ||
} | ||
|
||
public static String blockTextureMetadata(Identifier id) { | ||
return texture(id.getNamespace(), "block/" + id.getPath() + ".png.mcmeta"); | ||
} | ||
|
||
public static String itemModel(Identifier id) { | ||
return model(id.getNamespace(), "item/" + id.getPath() + ".json"); | ||
} | ||
|
||
public static String itemTexture(Identifier id) { | ||
return texture(id.getNamespace(), "item/" + id.getPath() + ".png"); | ||
} | ||
|
||
public static String itemTextureMetadata(Identifier id) { | ||
return texture(id.getNamespace(), "item/" + id.getPath() + ".png.mcmeta"); | ||
} | ||
|
||
public static String armorTexture(Identifier id, int layer) { | ||
return texture(id.getNamespace(), "models/armor/" + id.getPath() + "_layer_" + layer + ".png"); | ||
} | ||
|
||
public static String armorOverlayTexture(Identifier id, int layer) { | ||
return texture(id.getNamespace(), "models/armor/" + id.getPath() + "_layer_" + layer + "_overlay.png"); | ||
} | ||
|
||
public static String armorTexturePolymerMetadata(Identifier id, int layer) { | ||
return texture(id.getNamespace(), "models/armor/" + id.getPath() + "_layer_" + layer + ".polymer.json"); | ||
} | ||
} |
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
Oops, something went wrong.