-
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.
- removed Discord integration (unnecessary)
- cleaned code up - updated to 1.20.4 + updated dependencies
- Loading branch information
1 parent
6a9e8bb
commit 6c32456
Showing
38 changed files
with
372 additions
and
374 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
-started to add Helping NPCs (Guard) | ||
- started to add Helping NPCs (Guard) | ||
- removed Discord integration (unnecessary) | ||
- cleaned code up | ||
- updated to 1.20.4 + updated dependencies |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx1G | ||
org.gradle.jvmargs=-Xmx3G | ||
|
||
# Fabric Properties | ||
# check these on https://modmuss50.me/fabric.html | ||
minecraft_version=1.20.1 | ||
yarn_mappings=1.20.1+build.10 | ||
loader_version=0.14.22 | ||
minecraft_version=1.20.4 | ||
yarn_mappings=1.20.4+build.3 | ||
loader_version=0.15.6 | ||
|
||
# Mod Properties | ||
mod_version = 0.3 | ||
mod_version = 0.4.0 | ||
maven_group = de.tobi1craft | ||
archives_base_name = concacity | ||
|
||
# Dependencies | ||
# check this on https://modmuss50.me/fabric.html | ||
fabric_version=0.87.0+1.20.1 | ||
fabric_version=0.95.1+1.20.4 | ||
# https://maven.wispforest.io/io/wispforest/owo-lib/ | ||
owo_version=0.11.1+1.20 | ||
owo_version=0.12.3+1.20.3 | ||
# Geckolib for models / animations | ||
geckolib_version=4.2.2 | ||
geckolib_version=4.4.2 | ||
|
Binary file not shown.
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,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
1 change: 0 additions & 1 deletion
1
src/main/generated/.cache/1cbf2c4a8abe6bbcfb745598aa4318830be907d5
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/main/generated/.cache/6c294fca660ae3b8a4372f916f6ebc6a5e198961
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/main/generated/.cache/d6b2d1295f4f8474d07e7d3acca5c64ab555516f
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/main/generated/assets/concacity/models/item/helper_spawn_egg.json
This file was deleted.
Oops, something went wrong.
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
12 changes: 6 additions & 6 deletions
12
...ncacity/client/entity/HelperRenderer.java → ...ty/client/entity/HelperMinerRenderer.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
52 changes: 3 additions & 49 deletions
52
src/main/java/de/tobi1craft/concacity/client/gui/ModGUIs.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 |
---|---|---|
@@ -1,58 +1,12 @@ | ||
package de.tobi1craft.concacity.client.gui; | ||
|
||
import de.tobi1craft.concacity.Concacity; | ||
import de.tobi1craft.concacity.entity.custom.HelperEntity; | ||
import io.wispforest.owo.client.screens.ScreenUtils; | ||
import io.wispforest.owo.client.screens.SlotGenerator; | ||
import net.minecraft.client.MinecraftClient; | ||
import de.tobi1craft.concacity.client.gui.miner.HelperMinerInventoryGUI; | ||
import net.minecraft.client.gui.screen.ingame.HandledScreens; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
import net.minecraft.entity.player.PlayerInventory; | ||
import net.minecraft.inventory.Inventory; | ||
import net.minecraft.inventory.SimpleInventory; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.network.PacketByteBuf; | ||
import net.minecraft.screen.ScreenHandler; | ||
import net.minecraft.screen.ScreenHandlerContext; | ||
|
||
public class ModGUIs extends ScreenHandler { | ||
public final HelperEntity targetedEntity; | ||
public final Inventory inv; | ||
private final Inventory inventory; | ||
public int upgrade_mode; | ||
public int mode; | ||
|
||
public ModGUIs(int syncId, PlayerInventory playerInventory, PacketByteBuf buf) { | ||
this(syncId, playerInventory, new SimpleInventory(4), ScreenHandlerContext.EMPTY, MinecraftClient.getInstance().targetedEntity); | ||
upgrade_mode = buf.readInt(); | ||
mode = buf.readInt(); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public ModGUIs(int syncId, PlayerInventory playerInventory, Inventory inventory, ScreenHandlerContext context, Entity targetedEntity) { | ||
super(Concacity.SCREEN_HANDLER_TYPE, syncId); | ||
this.inventory = inventory; | ||
this.inv = (Inventory) targetedEntity; | ||
this.targetedEntity = (HelperEntity) targetedEntity; | ||
|
||
SlotGenerator.begin(this::addSlot, 8, 84) | ||
.grid(inv, 0, 2, 1) | ||
.playerInventory(playerInventory); | ||
} | ||
|
||
public class ModGUIs { | ||
public static void registerModGUIs() { | ||
Concacity.LOGGER.info("registering mod GUIs"); | ||
HandledScreens.register(Concacity.SCREEN_HANDLER_TYPE, HelperInventoryGUI::new); | ||
} | ||
|
||
@Override | ||
public ItemStack quickMove(PlayerEntity player, int slot) { | ||
return ScreenUtils.handleSlotTransfer(this, slot, 4); | ||
} | ||
|
||
@Override | ||
public boolean canUse(PlayerEntity player) { | ||
return true; | ||
HandledScreens.register(Concacity.SCREEN_HANDLER_TYPE, HelperMinerInventoryGUI::new); | ||
} | ||
} |
Oops, something went wrong.