-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
15 changed files
with
359 additions
and
340 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Metallics Arts 1.19.2-1.4.0 | ||
# Metallics Arts 1.19.2-1.4.1 | ||
|
||
|
||
|
||
## Index 📋 | ||
|
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
52 changes: 52 additions & 0 deletions
52
src/main/java/net/rudahee/metallics_arts/data/network/BannerPacket.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,52 @@ | ||
package net.rudahee.metallics_arts.data.network; | ||
|
||
import net.minecraft.network.FriendlyByteBuf; | ||
import net.minecraft.server.level.ServerPlayer; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraftforge.network.NetworkEvent; | ||
import net.rudahee.metallics_arts.modules.powers.helpers.IronAndSteelHelpers; | ||
|
||
import java.util.UUID; | ||
import java.util.function.Supplier; | ||
|
||
public class BannerPacket { | ||
|
||
private final UUID uuid; | ||
private final int slot; | ||
|
||
/** | ||
* | ||
* @param slot slot for remove | ||
* @param player the player | ||
*/ | ||
public BannerPacket(int slot, Player player) { | ||
this.uuid = player.getUUID(); | ||
this.slot = slot; | ||
} | ||
|
||
private BannerPacket(UUID uuid, int slot) { | ||
this.slot = slot; | ||
this.uuid = uuid; | ||
} | ||
|
||
public static BannerPacket decode(FriendlyByteBuf buf) { | ||
return new BannerPacket(buf.readUUID(), buf.readInt()); | ||
} | ||
|
||
public void encode(FriendlyByteBuf buf) { | ||
buf.writeInt(this.slot); | ||
buf.writeUUID(this.uuid); | ||
} | ||
|
||
public void handle(Supplier<NetworkEvent.Context> ctx) { | ||
ctx.get().enqueueWork(() -> { | ||
ServerPlayer player = ctx.get().getSender(); | ||
|
||
if (player != null) { | ||
player.getInventory().removeItem(IronAndSteelHelpers.haveNuggets(player), 1); | ||
} | ||
}); | ||
|
||
ctx.get().setPacketHandled(true); | ||
} | ||
} |
528 changes: 235 additions & 293 deletions
528
src/main/java/net/rudahee/metallics_arts/data/providers/ModLanguageProviderES.java
Large diffs are not rendered by default.
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
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
Binary file added
BIN
+4.9 KB
src/main/resources/assets/metallics_arts/textures/painting/inquisitor_painting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.81 KB
src/main/resources/assets/metallics_arts/textures/painting/sanfre_painting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 1 addition & 14 deletions
15
src/main/resources/data/minecraft/tags/painting_variant/placeable.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 |
---|---|---|
@@ -1,21 +1,8 @@ | ||
{ | ||
"values" : [ | ||
|
||
"metallics_arts:aluminium_alomantic_painting","metallics_arts:atium_alomantic_painting","metallics_arts:bendalloy_alomantic_painting", | ||
"metallics_arts:brass_alomantic_painting","metallics_arts:bronze_alomantic_painting","metallics_arts:cadmium_alomantic_painting", | ||
"metallics_arts:chromium_alomantic_painting","metallics_arts:copper_alomantic_painting","metallics_arts:duralumin_alomantic_painting", | ||
"metallics_arts:electrum_alomantic_painting","metallics_arts:ettmetal_alomantic_painting","metallics_arts:gold_alomantic_painting", | ||
"metallics_arts:iron_alomantic_painting","metallics_arts:lerasium_alomantic_painting","metallics_arts:malatium_alomantic_painting", | ||
"metallics_arts:nicrosil_alomantic_painting","metallics_arts:pewter_alomantic_painting","metallics_arts:steel_alomantic_painting", | ||
"metallics_arts:tin_alomantic_painting","metallics_arts:zinc_alomantic_painting", | ||
"metallics_arts:sanfre_painting", "metallics_arts:fun_cobber_painting", "metallics_arts:inquisitor_painting" | ||
|
||
"metallics_arts:aluminium_feruchemic_painting","metallics_arts:atium_feruchemic_painting","metallics_arts:bendalloy_feruchemic_painting", | ||
"metallics_arts:brass_feruchemic_painting","metallics_arts:bronze_feruchemic_painting","metallics_arts:cadmium_feruchemic_painting", | ||
"metallics_arts:chromium_feruchemic_painting","metallics_arts:copper_feruchemic_painting","metallics_arts:duralumin_feruchemic_painting", | ||
"metallics_arts:electrum_feruchemic_painting","metallics_arts:ettmetal_feruchemic_painting","metallics_arts:gold_feruchemic_painting", | ||
"metallics_arts:iron_feruchemic_painting","metallics_arts:lerasium_feruchemic_painting","metallics_arts:malatium_feruchemic_painting", | ||
"metallics_arts:nicrosil_feruchemic_painting","metallics_arts:pewter_feruchemic_painting","metallics_arts:steel_feruchemic_painting", | ||
"metallics_arts:tin_feruchemic_painting","metallics_arts:zinc_feruchemic_painting","metallics_arts:fun_cobber_painting" | ||
|
||
] | ||
} |