├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── gradle.yml │ └── release.yml ├── .gitignore ├── LICENSE ├── README.md ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle └── src └── main ├── java └── us │ └── potatoboy │ └── invview │ ├── InvView.java │ ├── ViewCommand.java │ ├── gui │ ├── SavingPlayerDataGui.java │ └── UnmodifiableSlot.java │ └── mixin │ └── EntityAccessor.java └── resources ├── fabric.mod.json ├── invview.mixins.json └── logo.png /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Device Info(please complete the following information):** 27 | - OS: [e.g. Windows, Mac] 28 | - Minecraft Version[e.g. 1.16.2] 29 | - Version [e.g. 1.0.0] 30 | 31 | **Additional context** 32 | Add any other context about the problem here. 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/workflows/gradle.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a Java project with Gradle 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle 3 | 4 | name: Java CI with Gradle 5 | 6 | on: 7 | push: 8 | branches: [ master ] 9 | pull_request: 10 | branches: [ master ] 11 | 12 | jobs: 13 | build: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | steps: 18 | - uses: actions/checkout@v4 19 | - name: Set up JDK 21 20 | uses: actions/setup-java@v4 21 | with: 22 | java-version: 21 23 | distribution: 'temurin' 24 | - name: Grant execute permission for gradlew 25 | run: chmod +x gradlew 26 | - name: Build with Gradle 27 | run: ./gradlew build --stacktrace --info 28 | - name: Upload a Build Artifact 29 | uses: actions/upload-artifact@v4 30 | with: 31 | name: InvView-Artifact 32 | path: build/libs/ 33 | if-no-files-found: error 34 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: release 2 | 3 | on: 4 | release: 5 | types: 6 | - published 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v3 13 | 14 | - name: Set up JDK 21 15 | uses: actions/setup-java@v3 16 | with: 17 | distribution: temurin 18 | java-version: 21 19 | 20 | - name: Make gradlew executable 21 | run: chmod +x ./gradlew 22 | 23 | - name: Build artifacts 24 | run: ./gradlew clean build 25 | 26 | - name: Upload assets to GitHub, Modrinth and CurseForge 27 | uses: Kir-Antipov/mc-publish@v3.3 28 | with: 29 | modrinth-id: jrDKjZP7 30 | modrinth-featured: false 31 | modrinth-token: ${{ secrets.MODRINTH_TOKEN }} 32 | 33 | curseforge-id: 405159 34 | curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} 35 | 36 | github-token: ${{ secrets.GITHUB_TOKEN }} 37 | 38 | loaders: | 39 | fabric 40 | quilt 41 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # User-specific stuff 2 | .idea/ 3 | 4 | *.iml 5 | *.ipr 6 | *.iws 7 | 8 | # IntelliJ 9 | out/ 10 | # mpeltonen/sbt-idea plugin 11 | .idea_modules/ 12 | 13 | # JIRA plugin 14 | atlassian-ide-plugin.xml 15 | 16 | # Compiled class file 17 | *.class 18 | 19 | # Log file 20 | *.log 21 | 22 | # BlueJ files 23 | *.ctxt 24 | 25 | # Package Files # 26 | *.jar 27 | *.war 28 | *.nar 29 | *.ear 30 | *.zip 31 | *.tar.gz 32 | *.rar 33 | 34 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 35 | hs_err_pid* 36 | 37 | *~ 38 | 39 | # temporary files which can be created if a process still has a handle open of a deleted file 40 | .fuse_hidden* 41 | 42 | # KDE directory preferences 43 | .directory 44 | 45 | # Linux trash folder which might appear on any partition or disk 46 | .Trash-* 47 | 48 | # .nfs files are created when an open file is removed but is still being accessed 49 | .nfs* 50 | 51 | # General 52 | .DS_Store 53 | .AppleDouble 54 | .LSOverride 55 | 56 | # Icon must end with two \r 57 | Icon 58 | 59 | # Thumbnails 60 | ._* 61 | 62 | # Files that might appear in the root of a volume 63 | .DocumentRevisions-V100 64 | .fseventsd 65 | .Spotlight-V100 66 | .TemporaryItems 67 | .Trashes 68 | .VolumeIcon.icns 69 | .com.apple.timemachine.donotpresent 70 | 71 | # Directories potentially created on remote AFP share 72 | .AppleDB 73 | .AppleDesktop 74 | Network Trash Folder 75 | Temporary Items 76 | .apdisk 77 | 78 | # Windows thumbnail cache files 79 | Thumbs.db 80 | Thumbs.db:encryptable 81 | ehthumbs.db 82 | ehthumbs_vista.db 83 | 84 | # Dump file 85 | *.stackdump 86 | 87 | # Folder config file 88 | [Dd]esktop.ini 89 | 90 | # Recycle Bin used on file shares 91 | $RECYCLE.BIN/ 92 | 93 | # Windows Installer files 94 | *.cab 95 | *.msi 96 | *.msix 97 | *.msm 98 | *.msp 99 | 100 | # Windows shortcuts 101 | *.lnk 102 | 103 | .gradle 104 | build/ 105 | 106 | # Ignore Gradle GUI config 107 | gradle-app.setting 108 | 109 | # Cache of project 110 | .gradletasknamecache 111 | 112 | **/build/ 113 | 114 | # Common working directory 115 | run/ 116 | 117 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) 118 | !gradle-wrapper.jar 119 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2020 Potatoboy9999 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # InvView 2 | Allows you to get the inventory and echest of other players 3 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'fabric-loom' version '1.10.+' 3 | id 'maven-publish' 4 | } 5 | 6 | repositories { 7 | maven { 8 | name = "TerraformersMC" 9 | url = "https://maven.terraformersmc.com/" 10 | } 11 | maven { 12 | name = "Ladysnake Libs" 13 | url = 'https://maven.ladysnake.org/releases' 14 | } 15 | maven { 16 | url = 'https://maven.cafeteria.dev' 17 | content { 18 | includeGroup 'net.adriantodt.fabricmc' 19 | } 20 | } 21 | maven { url "https://maven.jamieswhiteshirt.com/libs-release/" } 22 | maven { url "https://maven.shedaniel.me/" } 23 | maven { url 'https://maven.nucleoid.xyz' } 24 | maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } 25 | mavenCentral() 26 | maven { url 'https://api.modrinth.com/maven' } 27 | maven { url 'https://jitpack.io' } 28 | maven { url 'https://maven.quiltmc.org/repository/release' } 29 | } 30 | 31 | sourceCompatibility = JavaVersion.VERSION_21 32 | targetCompatibility = JavaVersion.VERSION_21 33 | 34 | archivesBaseName = project.archives_base_name 35 | version = project.mod_version + "-" + project.minecraft_version + "+" 36 | group = project.maven_group 37 | 38 | dependencies { 39 | //to change the versions see the gradle.properties file 40 | minecraft "com.mojang:minecraft:${project.minecraft_version}" 41 | mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" 42 | modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" 43 | 44 | // Fabric API. This is technically optional, but you probably want it anyway. 45 | modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" 46 | 47 | // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. 48 | // You may need to force-disable transitiveness on them. 49 | modImplementation include("eu.pb4:sgui:${project.sgui_version}") 50 | 51 | // modImplementation "dev.emi:trinkets:${project.trinkets_version}" 52 | // modImplementation "com.github.apace100:apoli:${project.apoli_version}" 53 | 54 | modImplementation "me.lucko:fabric-permissions-api:0.4.0" 55 | include "me.lucko:fabric-permissions-api:0.4.0" 56 | 57 | // Dev Mods - These can be commented/uncommented to test compatibility 58 | //modLocalRuntime "maven.modrinth:cloth-config:9.0.94+fabric" 59 | //modLocalRuntime "maven.modrinth:expanded-enderchest:1.0.0+1.19.3" 60 | //modLocalRuntime "maven.modrinth:elytra-slot:6uCj1VmZ" 61 | //modLocalRuntime "maven.modrinth:origins:1.10.0" 62 | } 63 | 64 | processResources { 65 | inputs.property "version", project.version 66 | filesMatching("fabric.mod.json") { 67 | expand "version": project.version 68 | } 69 | } 70 | 71 | // ensure that the encoding is set to UTF-8, no matter what the system default is 72 | // this fixes some edge cases with special characters not displaying correctly 73 | // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html 74 | tasks.withType(JavaCompile) { 75 | options.encoding = "UTF-8" 76 | } 77 | 78 | jar { 79 | from "LICENSE" 80 | } 81 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Done to increase the memory available to gradle. 2 | org.gradle.jvmargs=-Xmx1G 3 | # Fabric Properties 4 | # check these on https://fabricmc.net/develop/ 5 | minecraft_version=1.21.6 6 | yarn_mappings=1.21.6+build.1 7 | loader_version=0.16.14 8 | # Mod Properties 9 | mod_version=1.4.17 10 | maven_group=us.potatoboy 11 | archives_base_name=InvView 12 | # Dependencies 13 | # check this on https://fabricmc.net/develop/ 14 | fabric_version=0.127.1+1.21.6 15 | # trinkets_version=3.10.0 16 | # apoli_version=2.12.0 17 | sgui_version=1.10.0+1.21.6 18 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PotatoPresident/InvView/d8abbb362d0a0c6e3c343b1010d8125bf2feb02a/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | # SPDX-License-Identifier: Apache-2.0 19 | # 20 | 21 | ############################################################################## 22 | # 23 | # Gradle start up script for POSIX generated by Gradle. 24 | # 25 | # Important for running: 26 | # 27 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 28 | # noncompliant, but you have some other compliant shell such as ksh or 29 | # bash, then to run this script, type that shell name before the whole 30 | # command line, like: 31 | # 32 | # ksh Gradle 33 | # 34 | # Busybox and similar reduced shells will NOT work, because this script 35 | # requires all of these POSIX shell features: 36 | # * functions; 37 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 38 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 39 | # * compound commands having a testable exit status, especially «case»; 40 | # * various built-in commands including «command», «set», and «ulimit». 41 | # 42 | # Important for patching: 43 | # 44 | # (2) This script targets any POSIX shell, so it avoids extensions provided 45 | # by Bash, Ksh, etc; in particular arrays are avoided. 46 | # 47 | # The "traditional" practice of packing multiple parameters into a 48 | # space-separated string is a well documented source of bugs and security 49 | # problems, so this is (mostly) avoided, by progressively accumulating 50 | # options in "$@", and eventually passing that to Java. 51 | # 52 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 53 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 54 | # see the in-line comments for details. 55 | # 56 | # There are tweaks for specific operating systems such as AIX, CygWin, 57 | # Darwin, MinGW, and NonStop. 58 | # 59 | # (3) This script is generated from the Groovy template 60 | # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 61 | # within the Gradle project. 62 | # 63 | # You can find Gradle at https://github.com/gradle/gradle/. 64 | # 65 | ############################################################################## 66 | 67 | # Attempt to set APP_HOME 68 | 69 | # Resolve links: $0 may be a link 70 | app_path=$0 71 | 72 | # Need this for daisy-chained symlinks. 73 | while 74 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 75 | [ -h "$app_path" ] 76 | do 77 | ls=$( ls -ld "$app_path" ) 78 | link=${ls#*' -> '} 79 | case $link in #( 80 | /*) app_path=$link ;; #( 81 | *) app_path=$APP_HOME$link ;; 82 | esac 83 | done 84 | 85 | # This is normally unused 86 | # shellcheck disable=SC2034 87 | APP_BASE_NAME=${0##*/} 88 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) 89 | APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit 90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. 92 | MAX_FD=maximum 93 | 94 | warn () { 95 | echo "$*" 96 | } >&2 97 | 98 | die () { 99 | echo 100 | echo "$*" 101 | echo 102 | exit 1 103 | } >&2 104 | 105 | # OS specific support (must be 'true' or 'false'). 106 | cygwin=false 107 | msys=false 108 | darwin=false 109 | nonstop=false 110 | case "$( uname )" in #( 111 | CYGWIN* ) cygwin=true ;; #( 112 | Darwin* ) darwin=true ;; #( 113 | MSYS* | MINGW* ) msys=true ;; #( 114 | NONSTOP* ) nonstop=true ;; 115 | esac 116 | 117 | CLASSPATH="\\\"\\\"" 118 | 119 | 120 | # Determine the Java command to use to start the JVM. 121 | if [ -n "$JAVA_HOME" ] ; then 122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 123 | # IBM's JDK on AIX uses strange locations for the executables 124 | JAVACMD=$JAVA_HOME/jre/sh/java 125 | else 126 | JAVACMD=$JAVA_HOME/bin/java 127 | fi 128 | if [ ! -x "$JAVACMD" ] ; then 129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 130 | 131 | Please set the JAVA_HOME variable in your environment to match the 132 | location of your Java installation." 133 | fi 134 | else 135 | JAVACMD=java 136 | if ! command -v java >/dev/null 2>&1 137 | then 138 | die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 139 | 140 | Please set the JAVA_HOME variable in your environment to match the 141 | location of your Java installation." 142 | fi 143 | fi 144 | 145 | # Increase the maximum file descriptors if we can. 146 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 147 | case $MAX_FD in #( 148 | max*) 149 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. 150 | # shellcheck disable=SC2039,SC3045 151 | MAX_FD=$( ulimit -H -n ) || 152 | warn "Could not query maximum file descriptor limit" 153 | esac 154 | case $MAX_FD in #( 155 | '' | soft) :;; #( 156 | *) 157 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. 158 | # shellcheck disable=SC2039,SC3045 159 | ulimit -n "$MAX_FD" || 160 | warn "Could not set maximum file descriptor limit to $MAX_FD" 161 | esac 162 | fi 163 | 164 | # Collect all arguments for the java command, stacking in reverse order: 165 | # * args from the command line 166 | # * the main class name 167 | # * -classpath 168 | # * -D...appname settings 169 | # * --module-path (only if needed) 170 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 171 | 172 | # For Cygwin or MSYS, switch paths to Windows format before running java 173 | if "$cygwin" || "$msys" ; then 174 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 175 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 176 | 177 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 178 | 179 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 180 | for arg do 181 | if 182 | case $arg in #( 183 | -*) false ;; # don't mess with options #( 184 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 185 | [ -e "$t" ] ;; #( 186 | *) false ;; 187 | esac 188 | then 189 | arg=$( cygpath --path --ignore --mixed "$arg" ) 190 | fi 191 | # Roll the args list around exactly as many times as the number of 192 | # args, so each arg winds up back in the position where it started, but 193 | # possibly modified. 194 | # 195 | # NB: a `for` loop captures its iteration list before it begins, so 196 | # changing the positional parameters here affects neither the number of 197 | # iterations, nor the values presented in `arg`. 198 | shift # remove old arg 199 | set -- "$@" "$arg" # push replacement arg 200 | done 201 | fi 202 | 203 | 204 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 205 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 206 | 207 | # Collect all arguments for the java command: 208 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, 209 | # and any embedded shellness will be escaped. 210 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be 211 | # treated as '${Hostname}' itself on the command line. 212 | 213 | set -- \ 214 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 215 | -classpath "$CLASSPATH" \ 216 | -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ 217 | "$@" 218 | 219 | # Stop when "xargs" is not available. 220 | if ! command -v xargs >/dev/null 2>&1 221 | then 222 | die "xargs is not available" 223 | fi 224 | 225 | # Use "xargs" to parse quoted args. 226 | # 227 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 228 | # 229 | # In Bash we could simply go: 230 | # 231 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 232 | # set -- "${ARGS[@]}" "$@" 233 | # 234 | # but POSIX shell has neither arrays nor command substitution, so instead we 235 | # post-process each arg (as a line of input to sed) to backslash-escape any 236 | # character that might be a shell metacharacter, then use eval to reverse 237 | # that process (while maintaining the separation between arguments), and wrap 238 | # the whole thing up as a single "set" statement. 239 | # 240 | # This will of course break if any of these variables contains a newline or 241 | # an unmatched quote. 242 | # 243 | 244 | eval "set -- $( 245 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 246 | xargs -n1 | 247 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 248 | tr '\n' ' ' 249 | )" '"$@"' 250 | 251 | exec "$JAVACMD" "$@" 252 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | @rem SPDX-License-Identifier: Apache-2.0 17 | @rem 18 | 19 | @if "%DEBUG%"=="" @echo off 20 | @rem ########################################################################## 21 | @rem 22 | @rem Gradle startup script for Windows 23 | @rem 24 | @rem ########################################################################## 25 | 26 | @rem Set local scope for the variables with windows NT shell 27 | if "%OS%"=="Windows_NT" setlocal 28 | 29 | set DIRNAME=%~dp0 30 | if "%DIRNAME%"=="" set DIRNAME=. 31 | @rem This is normally unused 32 | set APP_BASE_NAME=%~n0 33 | set APP_HOME=%DIRNAME% 34 | 35 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 36 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 37 | 38 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 39 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 40 | 41 | @rem Find java.exe 42 | if defined JAVA_HOME goto findJavaFromJavaHome 43 | 44 | set JAVA_EXE=java.exe 45 | %JAVA_EXE% -version >NUL 2>&1 46 | if %ERRORLEVEL% equ 0 goto execute 47 | 48 | echo. 1>&2 49 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 50 | echo. 1>&2 51 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 52 | echo location of your Java installation. 1>&2 53 | 54 | goto fail 55 | 56 | :findJavaFromJavaHome 57 | set JAVA_HOME=%JAVA_HOME:"=% 58 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 59 | 60 | if exist "%JAVA_EXE%" goto execute 61 | 62 | echo. 1>&2 63 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 64 | echo. 1>&2 65 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 66 | echo location of your Java installation. 1>&2 67 | 68 | goto fail 69 | 70 | :execute 71 | @rem Setup the command line 72 | 73 | set CLASSPATH= 74 | 75 | 76 | @rem Execute Gradle 77 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* 78 | 79 | :end 80 | @rem End local scope for the variables with windows NT shell 81 | if %ERRORLEVEL% equ 0 goto mainEnd 82 | 83 | :fail 84 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 85 | rem the _cmd.exe /c_ return code! 86 | set EXIT_CODE=%ERRORLEVEL% 87 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 88 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 89 | exit /b %EXIT_CODE% 90 | 91 | :mainEnd 92 | if "%OS%"=="Windows_NT" endlocal 93 | 94 | :omega 95 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | maven { 4 | name = 'Fabric' 5 | url = 'https://maven.fabricmc.net/' 6 | } 7 | gradlePluginPortal() 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/us/potatoboy/invview/InvView.java: -------------------------------------------------------------------------------- 1 | package us.potatoboy.invview; 2 | 3 | import com.mojang.brigadier.tree.LiteralCommandNode; 4 | import com.mojang.logging.LogUtils; 5 | 6 | import me.lucko.fabric.api.permissions.v0.Permissions; 7 | import net.fabricmc.api.ModInitializer; 8 | import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback; 9 | import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents; 10 | import net.fabricmc.loader.api.FabricLoader; 11 | import net.minecraft.command.argument.GameProfileArgumentType; 12 | import net.minecraft.nbt.NbtCompound; 13 | import net.minecraft.nbt.NbtIo; 14 | import net.minecraft.server.MinecraftServer; 15 | import net.minecraft.server.command.CommandManager; 16 | import net.minecraft.server.command.ServerCommandSource; 17 | import net.minecraft.server.network.ServerPlayerEntity; 18 | import net.minecraft.storage.NbtWriteView; 19 | import net.minecraft.util.ErrorReporter; 20 | import net.minecraft.util.Util; 21 | import net.minecraft.util.WorldSavePath; 22 | 23 | import java.io.File; 24 | import java.nio.file.Files; 25 | import java.nio.file.Path; 26 | 27 | public class InvView implements ModInitializer { 28 | private static MinecraftServer minecraftServer; 29 | public static boolean isTrinkets = false; 30 | public static boolean isLuckPerms = false; 31 | public static boolean isApoli = false; 32 | 33 | @Override 34 | public void onInitialize() { 35 | isTrinkets = FabricLoader.getInstance().isModLoaded("trinkets"); 36 | isLuckPerms = FabricLoader.getInstance().isModLoaded("luckperms"); 37 | isApoli = FabricLoader.getInstance().isModLoaded("apoli"); 38 | 39 | CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> { 40 | 41 | LiteralCommandNode viewNode = CommandManager 42 | .literal("view") 43 | .requires(Permissions.require("invview.command.root", 2)) 44 | .build(); 45 | 46 | LiteralCommandNode invNode = CommandManager 47 | .literal("inv") 48 | .requires(Permissions.require("invview.command.inv", 2)) 49 | .then(CommandManager.argument("target", GameProfileArgumentType.gameProfile()) 50 | .executes(ViewCommand::inv)) 51 | .build(); 52 | 53 | LiteralCommandNode echestNode = CommandManager 54 | .literal("echest") 55 | .requires(Permissions.require("invview.command.echest", 2)) 56 | .then(CommandManager.argument("target", GameProfileArgumentType.gameProfile()) 57 | .executes(ViewCommand::eChest)) 58 | .build(); 59 | 60 | // LiteralCommandNode trinketNode = CommandManager 61 | // .literal("trinket") 62 | // .requires(Permissions.require("invview.command.trinket", 2)) 63 | // .then(CommandManager.argument("target", GameProfileArgumentType.gameProfile()) 64 | // .executes(ViewCommand::trinkets)) 65 | // .build(); 66 | // 67 | // LiteralCommandNode apoliNode = CommandManager 68 | // .literal("origin-inv") 69 | // .requires(Permissions.require("invview.command.origin", 2)) 70 | // .then(CommandManager.argument("target", GameProfileArgumentType.gameProfile()) 71 | // .executes(ViewCommand::apoli)) 72 | // .build(); 73 | 74 | dispatcher.getRoot().addChild(viewNode); 75 | viewNode.addChild(invNode); 76 | viewNode.addChild(echestNode); 77 | 78 | if (isTrinkets) { 79 | // viewNode.addChild(trinketNode); 80 | } 81 | if (isApoli) { 82 | // viewNode.addChild(apoliNode); 83 | } 84 | }); 85 | 86 | ServerLifecycleEvents.SERVER_STARTING.register(this::onLogicalServerStarting); 87 | } 88 | 89 | private void onLogicalServerStarting(MinecraftServer server) { 90 | minecraftServer = server; 91 | } 92 | 93 | public static MinecraftServer getMinecraftServer() { 94 | return minecraftServer; 95 | } 96 | 97 | // Taken from net.minecraft.world.PlayerSaveHandler.savePlayerData(), which is a protected method 98 | public static void savePlayerData(ServerPlayerEntity player) { 99 | File playerDataDir = minecraftServer.getSavePath(WorldSavePath.PLAYERDATA).toFile(); 100 | try (ErrorReporter.Logging logging = new ErrorReporter.Logging(player.getErrorReporterContext(), LogUtils.getLogger())) { 101 | NbtWriteView nbtWriteView = NbtWriteView.create(logging, player.getRegistryManager()); 102 | player.writeData(nbtWriteView); 103 | Path path = playerDataDir.toPath(); 104 | Path path2 = Files.createTempFile(path, player.getUuidAsString() + "-", ".dat"); 105 | NbtCompound nbtCompound = nbtWriteView.getNbt(); 106 | NbtIo.writeCompressed(nbtCompound, path2); 107 | Path path3 = path.resolve(player.getUuidAsString() + ".dat"); 108 | Path path4 = path.resolve(player.getUuidAsString() + ".dat_old"); 109 | Util.backupAndReplace(path3, path2, path4); 110 | } catch (Exception var11) { 111 | LogUtils.getLogger().warn("Failed to save player data for {}", player.getName().getString()); 112 | } 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /src/main/java/us/potatoboy/invview/ViewCommand.java: -------------------------------------------------------------------------------- 1 | package us.potatoboy.invview; 2 | 3 | import com.mojang.authlib.GameProfile; 4 | import com.mojang.brigadier.context.CommandContext; 5 | import com.mojang.brigadier.exceptions.CommandSyntaxException; 6 | import com.mojang.logging.LogUtils; 7 | import eu.pb4.sgui.api.elements.GuiElementBuilder; 8 | import eu.pb4.sgui.api.gui.SimpleGui; 9 | import me.lucko.fabric.api.permissions.v0.Permissions; 10 | import net.minecraft.command.argument.GameProfileArgumentType; 11 | import net.minecraft.inventory.EnderChestInventory; 12 | import net.minecraft.item.Items; 13 | import net.minecraft.network.packet.c2s.common.SyncedClientOptions; 14 | import net.minecraft.registry.RegistryKey; 15 | import net.minecraft.registry.RegistryKeys; 16 | import net.minecraft.screen.ScreenHandlerType; 17 | import net.minecraft.screen.slot.Slot; 18 | import net.minecraft.server.MinecraftServer; 19 | import net.minecraft.server.command.ServerCommandSource; 20 | import net.minecraft.server.network.ServerPlayerEntity; 21 | import net.minecraft.server.world.ServerWorld; 22 | import net.minecraft.storage.ReadView; 23 | import net.minecraft.text.Text; 24 | import net.minecraft.util.ErrorReporter; 25 | import net.minecraft.util.Identifier; 26 | import us.potatoboy.invview.gui.SavingPlayerDataGui; 27 | import us.potatoboy.invview.gui.UnmodifiableSlot; 28 | import us.potatoboy.invview.mixin.EntityAccessor; 29 | 30 | import java.util.Optional; 31 | 32 | public class ViewCommand { 33 | private static final MinecraftServer minecraftServer = InvView.getMinecraftServer(); 34 | 35 | private static final String permProtected = "invview.protected"; 36 | private static final String permModify = "invview.can_modify"; 37 | private static final String msgProtected = "Requested inventory is protected"; 38 | 39 | public static int inv(CommandContext context) throws CommandSyntaxException { 40 | ServerPlayerEntity player = context.getSource().getPlayer(); 41 | ServerPlayerEntity requestedPlayer = getRequestedPlayer(context); 42 | 43 | boolean canModify = Permissions.check(context.getSource(), permModify, true); 44 | 45 | Permissions.check(requestedPlayer.getUuid(), permProtected, false).thenAcceptAsync(isProtected -> { 46 | if (isProtected) { 47 | context.getSource().sendError(Text.literal(msgProtected)); 48 | } else { 49 | SimpleGui gui = new SavingPlayerDataGui(ScreenHandlerType.GENERIC_9X5, player, requestedPlayer); 50 | gui.setTitle(requestedPlayer.getName()); 51 | addBackground(gui); 52 | for (int i = 0; i < requestedPlayer.getInventory().size(); i++) { 53 | gui.setSlotRedirect(i, canModify ? new Slot(requestedPlayer.getInventory(), i, 0, 0) 54 | : new UnmodifiableSlot(requestedPlayer.getInventory(), i)); 55 | } 56 | 57 | gui.open(); 58 | } 59 | }); 60 | 61 | return 1; 62 | } 63 | 64 | public static int eChest(CommandContext context) throws CommandSyntaxException { 65 | ServerPlayerEntity player = context.getSource().getPlayer(); 66 | ServerPlayerEntity requestedPlayer = getRequestedPlayer(context); 67 | EnderChestInventory requestedEchest = requestedPlayer.getEnderChestInventory(); 68 | 69 | boolean canModify = Permissions.check(context.getSource(), permModify, true); 70 | 71 | Permissions.check(requestedPlayer.getUuid(), permProtected, false).thenAcceptAsync(isProtected -> { 72 | if (isProtected) { 73 | context.getSource().sendError(Text.literal(msgProtected)); 74 | } else { 75 | ScreenHandlerType screenHandlerType = switch (requestedEchest.size()) { 76 | case 9 -> ScreenHandlerType.GENERIC_9X1; 77 | case 18 -> ScreenHandlerType.GENERIC_9X2; 78 | case 36 -> ScreenHandlerType.GENERIC_9X4; 79 | case 45 -> ScreenHandlerType.GENERIC_9X5; 80 | case 54 -> ScreenHandlerType.GENERIC_9X6; 81 | default -> ScreenHandlerType.GENERIC_9X3; 82 | }; 83 | SimpleGui gui = new SavingPlayerDataGui(screenHandlerType, player, requestedPlayer); 84 | gui.setTitle(requestedPlayer.getName()); 85 | addBackground(gui); 86 | for (int i = 0; i < requestedEchest.size(); i++) { 87 | gui.setSlotRedirect(i, 88 | canModify ? new Slot(requestedEchest, i, 0, 0) : new UnmodifiableSlot(requestedEchest, i)); 89 | } 90 | 91 | gui.open(); 92 | } 93 | }); 94 | 95 | return 1; 96 | } 97 | 98 | // public static int trinkets(CommandContext context) throws CommandSyntaxException { 99 | // ServerPlayerEntity player = context.getSource().getPlayer(); 100 | // ServerPlayerEntity requestedPlayer = getRequestedPlayer(context); 101 | // TrinketComponent requestedComponent = TrinketsApi.getTrinketComponent(requestedPlayer).get(); 102 | // 103 | // boolean canModify = Permissions.check(context.getSource(), permModify, true); 104 | // 105 | // Permissions.check(requestedPlayer.getUuid(), permProtected, false).thenAcceptAsync(isProtected -> { 106 | // if (isProtected) { 107 | // context.getSource().sendError(Text.literal(msgProtected)); 108 | // } else { 109 | // SimpleGui gui = new SavingPlayerDataGui(ScreenHandlerType.GENERIC_9X2, player, requestedPlayer); 110 | // addBackground(gui); 111 | // gui.setTitle(requestedPlayer.getName()); 112 | // int index = 0; 113 | // for (Map group : requestedComponent.getInventory().values()) { 114 | // for (TrinketInventory inventory : group.values()) { 115 | // for (int i = 0; i < inventory.size(); i++) { 116 | // gui.setSlotRedirect(index, canModify ? new Slot(inventory, i, 0, 0) : new UnmodifiableSlot(inventory, i)); 117 | // index += 1; 118 | // } 119 | // } 120 | // } 121 | // 122 | // gui.open(); 123 | // } 124 | // }); 125 | // 126 | // return 1; 127 | // } 128 | 129 | // public static int apoli(CommandContext context) throws CommandSyntaxException { 130 | // ServerPlayerEntity player = context.getSource().getPlayer(); 131 | // ServerPlayerEntity requestedPlayer = getRequestedPlayer(context); 132 | // 133 | // boolean canModify = Permissions.check(context.getSource(), permModify, true); 134 | // 135 | // Permissions.check(requestedPlayer.getUuid(), permProtected, false).thenAcceptAsync(isProtected -> { 136 | // if (isProtected) { 137 | // context.getSource().sendError(Text.literal(msgProtected)); 138 | // } else { 139 | // List inventories = PowerHolderComponent.getPowers(requestedPlayer, 140 | // InventoryPower.class); 141 | // if (inventories.isEmpty()) { 142 | // context.getSource().sendError(Text.literal("Requested player has no inventory power")); 143 | // } else { 144 | // SimpleGui gui = new SavingPlayerDataGui(ScreenHandlerType.GENERIC_9X5, player, requestedPlayer); 145 | // gui.setTitle(requestedPlayer.getName()); 146 | // addBackground(gui); 147 | // int index = 0; 148 | // for (InventoryPower inventory : inventories) { 149 | // for (int i = 0; i < inventory.size(); i++) { 150 | // gui.setSlotRedirect(index, canModify ? new Slot(inventory, i, 0, 0) : new UnmodifiableSlot(inventory, i)); 151 | // index += 1; 152 | // } 153 | // } 154 | // 155 | // gui.open(); 156 | // } 157 | // } 158 | // }); 159 | // 160 | // return 1; 161 | // } 162 | 163 | private static ServerPlayerEntity getRequestedPlayer(CommandContext context) 164 | throws CommandSyntaxException { 165 | GameProfile requestedProfile = GameProfileArgumentType.getProfileArgument(context, "target").iterator().next(); 166 | ServerPlayerEntity requestedPlayer = minecraftServer.getPlayerManager().getPlayer(requestedProfile.getName()); 167 | 168 | // If player is not currently online 169 | if (requestedPlayer == null) { 170 | requestedPlayer = new ServerPlayerEntity(minecraftServer, minecraftServer.getOverworld(), requestedProfile, 171 | SyncedClientOptions.createDefault()); 172 | Optional readViewOpt = minecraftServer.getPlayerManager() 173 | .loadPlayerData(requestedPlayer, new ErrorReporter.Logging(LogUtils.getLogger())); 174 | 175 | // Avoids player's dimension being reset to the overworld 176 | if (readViewOpt.isPresent()) { 177 | ReadView readView = readViewOpt.get(); 178 | Optional dimension = readView.getOptionalString("Dimension"); 179 | 180 | if (dimension.isPresent()) { 181 | ServerWorld world = minecraftServer.getWorld( 182 | RegistryKey.of(RegistryKeys.WORLD, Identifier.tryParse(dimension.get()))); 183 | 184 | if (world != null) { 185 | ((EntityAccessor) requestedPlayer).callSetWorld(world); 186 | } 187 | } 188 | } 189 | } 190 | 191 | return requestedPlayer; 192 | } 193 | 194 | private static void addBackground(SimpleGui gui) { 195 | for (int i = 0; i < gui.getSize(); i++) { 196 | gui.setSlot(i, new GuiElementBuilder(Items.BARRIER).setName(Text.literal("")).build()); 197 | } 198 | } 199 | } 200 | -------------------------------------------------------------------------------- /src/main/java/us/potatoboy/invview/gui/SavingPlayerDataGui.java: -------------------------------------------------------------------------------- 1 | package us.potatoboy.invview.gui; 2 | 3 | import eu.pb4.sgui.api.gui.SimpleGui; 4 | import net.minecraft.screen.ScreenHandlerType; 5 | import net.minecraft.server.network.ServerPlayerEntity; 6 | import us.potatoboy.invview.InvView; 7 | 8 | public class SavingPlayerDataGui extends SimpleGui { 9 | private final ServerPlayerEntity savedPlayer; 10 | 11 | /** 12 | * Constructs a new simple container gui for the supplied player. 13 | * 14 | * @param type the screen handler that the client should display 15 | * @param player the player to server this gui to 16 | */ 17 | public SavingPlayerDataGui(ScreenHandlerType type, ServerPlayerEntity player, ServerPlayerEntity savedPlayer) { 18 | super(type, player, false); 19 | this.savedPlayer = savedPlayer; 20 | } 21 | 22 | @Override 23 | public void onClose() { 24 | InvView.savePlayerData(savedPlayer); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/us/potatoboy/invview/gui/UnmodifiableSlot.java: -------------------------------------------------------------------------------- 1 | package us.potatoboy.invview.gui; 2 | 3 | import net.minecraft.entity.player.PlayerEntity; 4 | import net.minecraft.inventory.Inventory; 5 | import net.minecraft.item.ItemStack; 6 | import net.minecraft.screen.slot.Slot; 7 | 8 | public class UnmodifiableSlot extends Slot { 9 | public UnmodifiableSlot(Inventory inventory, int index) { 10 | super(inventory, index, 0, 0); 11 | } 12 | 13 | @Override 14 | public boolean canInsert(ItemStack stack) { 15 | return false; 16 | } 17 | 18 | @Override 19 | public boolean canTakeItems(PlayerEntity playerEntity) { 20 | return false; 21 | } 22 | 23 | @Override 24 | public boolean canTakePartial(PlayerEntity player) { 25 | return false; 26 | } 27 | 28 | @Override 29 | public ItemStack takeStack(int amount) { 30 | return ItemStack.EMPTY; 31 | } 32 | 33 | @Override 34 | public ItemStack insertStack(ItemStack stack, int count) { 35 | return stack; 36 | } 37 | 38 | @Override 39 | public void setStack(ItemStack stack) { 40 | 41 | } 42 | 43 | @Override 44 | public void setStackNoCallbacks(ItemStack stack) { 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/us/potatoboy/invview/mixin/EntityAccessor.java: -------------------------------------------------------------------------------- 1 | package us.potatoboy.invview.mixin; 2 | 3 | import org.spongepowered.asm.mixin.Mixin; 4 | import org.spongepowered.asm.mixin.gen.Invoker; 5 | import net.minecraft.entity.Entity; 6 | import net.minecraft.world.World; 7 | 8 | @Mixin(Entity.class) 9 | public interface EntityAccessor { 10 | @Invoker 11 | public void callSetWorld(World world); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/resources/fabric.mod.json: -------------------------------------------------------------------------------- 1 | { 2 | "schemaVersion": 1, 3 | "id": "invview", 4 | "version": "${version}", 5 | "name": "InvView", 6 | "description": "Allows you to open the inventory and ender chest of online and offline players", 7 | "authors": [ 8 | "Potatoboy9999" 9 | ], 10 | "contact": { 11 | "website": "https://www.curseforge.com/minecraft/mc-mods/inv-view", 12 | "sources": "https://github.com/PotatoPresident/InvView", 13 | "issues": "https://github.com/PotatoPresident/InvView/issues", 14 | "homepage": "https://www.curseforge.com/minecraft/mc-mods/inv-view" 15 | }, 16 | "custom": { 17 | "modmenu": { 18 | "links": { 19 | "modmenu.discord": "https://discord.gg/ByaVuebAPb" 20 | } 21 | } 22 | }, 23 | "license": "MIT", 24 | "icon": "logo.png", 25 | "environment": "*", 26 | "entrypoints": { 27 | "main": [ 28 | "us.potatoboy.invview.InvView" 29 | ] 30 | }, 31 | "mixins": [ 32 | "invview.mixins.json" 33 | ], 34 | "depends": { 35 | "fabricloader": ">=0.15.10", 36 | "fabric": "*", 37 | "minecraft": ">=1.21.6" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/resources/invview.mixins.json: -------------------------------------------------------------------------------- 1 | { 2 | "required": true, 3 | "minVersion": "0.8", 4 | "package": "us.potatoboy.invview.mixin", 5 | "compatibilityLevel": "JAVA_17", 6 | "mixins": [ 7 | "EntityAccessor" 8 | ], 9 | "injectors": { 10 | "defaultRequire": 1 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/main/resources/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PotatoPresident/InvView/d8abbb362d0a0c6e3c343b1010d8125bf2feb02a/src/main/resources/logo.png --------------------------------------------------------------------------------