change some early stuff

Signed-off-by: PlexSheep <PlexSheep@protonmail.com>
This commit is contained in:
Christoph J. Scherr 2023-03-30 22:09:47 +02:00 committed by PlexSheep
parent 68c6344035
commit 740fb09754
4 changed files with 51 additions and 11 deletions

25
.gitignore vendored
View File

@ -1,3 +1,22 @@
/.gradle/
/build/
/run/
.gradle
**/build/
!src/**/build/
# Ignore Gradle GUI config
gradle-app.setting
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
# Avoid ignore Gradle wrappper properties
!gradle-wrapper.properties
# Cache of project
.gradletasknamecache
# Eclipse Gradle plugin generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>

View File

@ -1,9 +1,5 @@
# Fabric Example Mod
# PlexTool Minecraft Mod
This is a set of utilities i use on my personal Minecraft server.
## Setup
For setup instructions please see the [fabric wiki page](https://fabricmc.net/wiki/tutorial:setup) that relates to the IDE that you are using.
## License
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.
# License
MIT License, do whatever you want basically.

View File

@ -0,0 +1,24 @@
package de.cscherr.plextool;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.screen.ScreenHandler;
import net.minecraft.screen.ScreenHandlerType;
import org.jetbrains.annotations.Nullable;
public class PlexScreenHandler extends ScreenHandler {
protected PlexScreenHandler(@Nullable ScreenHandlerType<?> type, int syncId) {
super(type, syncId);
}
@Override
public ItemStack quickMove(PlayerEntity player, int slot) {
return null;
}
@Override
public boolean canUse(PlayerEntity player) {
return false;
}
}