-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8509c43
commit 2f6f6a7
Showing
21 changed files
with
80 additions
and
25 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
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
34 changes: 34 additions & 0 deletions
34
common/src/main/java/dev/felnull/otyacraftengine/client/util/OENativeUtils.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,34 @@ | ||
package dev.felnull.otyacraftengine.client.util; | ||
|
||
import com.sun.jna.platform.win32.Shell32Util; | ||
import com.sun.jna.platform.win32.ShlObj; | ||
import net.minecraft.Util; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.nio.file.Path; | ||
import java.nio.file.Paths; | ||
|
||
/** | ||
* ネイティブ関係のユーティリティ | ||
*/ | ||
public class OENativeUtils { | ||
@Nullable | ||
public static Path getMyMusicFolder() { | ||
try { | ||
if (Util.getPlatform() == Util.OS.WINDOWS) | ||
return Paths.get(Shell32Util.getSpecialFolderPath(ShlObj.CSIDL_MYMUSIC, false)); | ||
} catch (Throwable ignored) { | ||
} | ||
return null; | ||
} | ||
|
||
@Nullable | ||
public static Path getMyPicturesFolder() { | ||
try { | ||
if (Util.getPlatform() == Util.OS.WINDOWS) | ||
return Paths.get(Shell32Util.getSpecialFolderPath(ShlObj.CSIDL_MYPICTURES, false)); | ||
} catch (Throwable ignored) { | ||
} | ||
return null; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
testmod-fabric/src/main/generated/.cache/0d50bffddf75e22e52fc02f1ad4a51e0aed4f3e3
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 @@ | ||
// 1.19.3 2023-01-21T16:38:04.6602346 Otyacraft Engine Test/Tags for minecraft:block | ||
// 1.19.3 2023-01-25T04:17:51.605033 Otyacraft Engine Test/Tags for minecraft:block |
2 changes: 1 addition & 1 deletion
2
testmod-fabric/src/main/generated/.cache/7ef7386eba12df43ed28295f8b18d4d73adaecc3
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,2 +1,2 @@ | ||
// 1.19.3 2023-01-21T16:38:04.6602346 Otyacraft Engine Test/Advancements | ||
// 1.19.3 2023-01-25T04:17:51.605033 Otyacraft Engine Test/Advancements | ||
24ed8addd22a4702b7c77f0cd605fc53795f19e4 data\otyacraftenginetest\advancements\otyacraftenginetest\root.json |
2 changes: 1 addition & 1 deletion
2
testmod-fabric/src/main/generated/.cache/82fd91efd4f0f9bed8483c2564da5617cbe89e10
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,3 +1,3 @@ | ||
// 1.19.3 2023-01-21T16:38:04.658233 Otyacraft Engine Test/Input copy | ||
// 1.19.3 2023-01-25T04:17:51.6040356 Otyacraft Engine Test/Input copy | ||
183e554347c694dd0d75591721b58459636bd6f2 assets\otyacraftenginetest\copy_test\test.json | ||
183e554347c694dd0d75591721b58459636bd6f2 assets\otyacraftenginetest\copy_test\fcoh\ikisugi.json |
2 changes: 1 addition & 1 deletion
2
testmod-fabric/src/main/generated/.cache/8a0e335825c442d2d05946d5f5bfc9cff6867414
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,3 +1,3 @@ | ||
// 1.19.3 2023-01-21T16:38:04.6592335 Otyacraft Engine Test/Recipes | ||
// 1.19.3 2023-01-25T04:17:51.6040356 Otyacraft Engine Test/Recipes | ||
afe1da46e75b1ff0ac6ea63110f2748c8aa84b96 data\otyacraftenginetest\recipes\test.json | ||
d1ccb28bcc88e720665ccb40ab3bc54348a05587 data\otyacraftenginetest\advancements\recipes\food\test.json |
2 changes: 1 addition & 1 deletion
2
testmod-fabric/src/main/generated/.cache/ba2d765169f46b9a6372777275918e1ed1f0fcc3
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,2 +1,2 @@ | ||
// 1.19.3 2023-01-21T16:38:04.6602346 Otyacraft Engine Test/Model Definitions | ||
// 1.19.3 2023-01-25T04:17:51.605033 Otyacraft Engine Test/Model Definitions | ||
d40f279d0798e10ef4fe6a50dc7c0c3b22f8f3a2 assets\otyacraftenginetest\models\item\test_item.json |
3 changes: 2 additions & 1 deletion
3
testmod-fabric/src/main/generated/.cache/ce80034259a34f1a7f73e142406aa3e0d228839b
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,2 +1,3 @@ | ||
// 1.19.3 2023-01-21T16:38:04.6572343 Otyacraft Engine Test/Tags for minecraft:item | ||
// 1.19.3 2023-01-25T04:17:51.6030333 Otyacraft Engine Test/Tags for minecraft:item | ||
7eb508a49db08b3875db67cd0383ae0d7494beb6 data\minecraft\tags\items\boats.json | ||
cfa612cb64f7e213d984ca4431202690f594df8a data\c\tags\items\ender_pearls.json |
2 changes: 1 addition & 1 deletion
2
testmod-fabric/src/main/generated/.cache/f61dec5b33b2b836451587dc0ec0b3cbe6b0bd80
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,4 +1,4 @@ | ||
// 1.19.3 2023-01-21T16:38:04.6592335 Otyacraft Engine Test/Model Process | ||
// 1.19.3 2023-01-25T04:17:51.6040356 Otyacraft Engine Test/Model Process | ||
d949ee0f371db9fc9b8bceb58f7d74284b47ade3 assets\otyacraftenginetest\models\item\slide.json | ||
8cb44dd96d67f1401394f517ced825ebc2b7728e assets\otyacraftenginetest\models\item\glock_17.json | ||
b2c02147d1dbbc14042fc6c1a40e7f1072660b5b assets\otyacraftenginetest\models\item\magazine.json |
6 changes: 6 additions & 0 deletions
6
testmod-fabric/src/main/generated/data/c/tags/items/ender_pearls.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"minecraft:ender_pearl" | ||
] | ||
} |