This pull request introduces the PacketItemListener class, which is designed to handle the incorporation of placeholders in the lore and titles of items within the game. The listener class specifically responds to the SET_SLOT and WINDOW_ITEMS packet types, allowing for dynamic updating of item descriptions as they are interacted with in the UI.
Key features implemented:
PacketItemListener Class: Listens to SET_SLOT and WINDOW_ITEMS packets and modifies item lore and titles to include placeholders dynamically using NBT tags and components serializers.
Changes
Modified ItsMyConfig.java to instantiate the new packet listener.
Added PacketItemListener.java which contains the logic for intercepting and modifying item packets.
Updated build.gradle to change the repository configuration to the official Sonatype repository.
Testing
Manual testing was conducted to ensure that placeholders are correctly inserted and displayed in item lore and titles.
Description
This pull request introduces the
PacketItemListener
class, which is designed to handle the incorporation of placeholders in the lore and titles of items within the game. The listener class specifically responds to theSET_SLOT
andWINDOW_ITEMS
packet types, allowing for dynamic updating of item descriptions as they are interacted with in the UI.Key features implemented:
PacketItemListener Class: Listens to
SET_SLOT
andWINDOW_ITEMS
packets and modifies item lore and titles to include placeholders dynamically using NBT tags and components serializers.Changes
ItsMyConfig.java
to instantiate the new packet listener.PacketItemListener.java
which contains the logic for intercepting and modifying item packets.build.gradle
to change the repository configuration to the official Sonatype repository.Testing