Releases: Infinity-Projects-de/MPP
Releases · Infinity-Projects-de/MPP
test
Release MPP-0.1.337-1.20.4-SNAPSHOT
update: update to 1.20.4 (#45) * update: update to 1.20.4 * fix: newItem is no longer nullable
Release MPP-0.1.336-1.19.4-SNAPSHOT
fix: Added permissions
Release MPP-0.1.332-1.19.4-SNAPSHOT
feat: Blocks rework (#43) * feat(wip): Added gravitite and zanite armors * feat: Added block items. Have to think whether to group block items with blocks * feat: Added sticks, zanitite stone and gravitite plate as ingredients * feat: Created item interface Having a problem with it as it doesn't access enum properties, so I can't use default method to register easily * feat: Created item registry Having to think whether to add blocks to it * feat: Added all planned tools to Tools.kt, created tool tier and tool type Have to think whether to use the same Material for each type as speed and other values are not given by the mc tool tier but instead by the plugins tool tier. * fix: Item interface can now read enum names, so I can now use a default register for each enum value * feat: Tools now use the same Minecraft item based on their type. * feat: Added armor materials to store each material data * feat: Added ArmorMaterial and created Armor special Item Meta modifier for colors * refactor: Deprecated class about to be deleted * feat: Added ItemStack creator * feat: Added ItemStack special getters to ItemRegistry * feat: Registering items on plugin start * refactor: Fixed typo in Gravitite * feat: Added a way to get all items as a list for PackBuilder * feat: PackBuilder now uses ItemRegistry and ArmorMaterial to build the pack * feat: Deleted unused armor textures to prevent errors on pack building * refactor: Renamed to a more descriptive name * feat: Created a simple armor listener * feat: Added armor toughness value and made ArmorProtection public * feat: Removed old classes * feat: Now uses new Items and gets block drops from Blocks * feat: Added a way to get the corresponding item to a block * feat: Used apply method and added an amount parameter to ItemStack * feat: Made getItemByID public * feat: Put old methods aside and added new armor listener * feat: Added tool ingredients to make smart recipes * refactor: Renamed RP Builder class to a more descriptive name * feat: Made items register a static method * feat: Changed ItemStack List to Array * feat: Created an algorithm to make all possible recipes automatically * style: Formatted with ktlint * feat: Created a test for ItemRegistry Can't test getIdFromItemstack and getItemFromItemstack as they depend on Bukkit * feat: Added tests (Kotlin and JUnit) to the project * fix: Changed listOf to arrayOf because of the change on ShapedRecipe * feat: Removed unused methods and made private getItemID() public * feat: Created a test for ShapedRecipe which tells that the algorithm doesn't work, so the algorithm needs to be fixed. * feat: Added a model offset for each enum to use temporarily * feat: Added many recipe tests * feat: Added a check for repeated ids * refactor: Deprecated unnecessary variable method * refactor: Removed old models that are not used anymore * feat: Removed model offset. Using hash again. * fix: Fixed model leaking by ordering model id * feat: Using data class instead of a simple class * fix: Fixed vanilla leather armor inventory item as Minecraft changed the textures from 1.18 to 1.19 * feat (unstable): Started looking at having our own packet handler. * refactor: Removed unused code * refactor: Removed unused block types * refactor: Removed deleted classes * refactor: Removed PacketListener and made PacketHandler an object * feat: Created a bukkit-like event handler for packets * feat: Implemented a data class to manage all listeners and not call the getGenericType method on each packet and listener. Also implemented life-cycle methods to prevent breaking on reloads and similar methods Reduced as well the code used by extracting the packet sending method * feat: Added an essential property to Packet Event, the Player * docs: Improved some documentation * feat: Now using mainly Kotlin reflections, added many errors for developers. * feat: Created a method to register packet related listeners * feat: Now using mainly Kotlin reflections, added many errors for developers. * refactor: Re-added aether leaves * feat: deprecated Protocollib code * feat: added a method to easily send a packet to a player * refactor: renamed initializing method * feat: removed protocol lib. All methods use PacketHandler now * chore: ignoring two unit tests for unrelated errors * feat: added some more tests and cleaned up by extracting getRecipeArrays reflection * fix: fixed a problem with complex recipes * feat: totally removed Protocollib * feat: Added tools and armors recipes Also, updated all recipes to the new system * feat: removed Protocollib from README.md * feat: added mockk test dependency * feat: added recipes for some blocks * feat: embedded ToolType enum into Tools * fix: fixed methods name collision * feat: Added ingredients recipes * feat: removed old items and blocks from locales and resource pack * fix: fixed recipes error on init * refactor: Renamed method to a more suitable one Co-authored-by: Daniel Maile <73589772+dm432@users.noreply.github.com> * refactor: Removed an unnecessary comment * refactor: Removed comment * refactor: renamed getIdFromItemstack to getIdFromItemStack (camelcase) Co-authored-by: Daniel Maile <73589772+dm432@users.noreply.github.com> * fix: block place event is now cancelled when a player tries to place an item * refactor: removed an unnecessary and misleading comment * refactor: removed unused methods and uncommented unrelated-to-branch lines commented out for testing * refactor: now using bukkit event priority to sort packet handler events * refactor: deleted a debug print * refactor: ShapedRecipe is now a way more readable class. - Extracted many of the methods to avoid indentation and for readability. - Used Kotlin-provided inline loops and conditions to reduce most of them - Used a const for possible ingredients for an improved structure of the code - Added a lot of documentation * feat: Separate Lama listener into a separate class - Separate Lama listener from the main class to improve maintainability and code organization - Decouple packet listener and Bukkit event listener responsibilities * fix: rename a method after a method refactor * docs: Improve ShapedRecipe.kt documentation Some of the methods didn't have any documentation yet, added it. * style: Added a space fifth space of indentation for comments. I added 4 spaces before because I used the GitHub web editor * WIP: Started reworking the block breaking service. It's quite a spaghetti, not going to lie, so I'll have to redo almost everything * feat: merged latest items-rework changes into blocks-rework * WIP: Updating the whole block breaking service to support the three possible combinations and fixing spaghetti code. * feat: Utility for getting whether a vanilla tool is correct and all blocks' hardness * feat: Utility methods for getting whether an MPP tool is correct for breaking any (vanilla or MPP) block * feat: Deleted old ToolType as it is hardcoded and unused * feat: block breaking service now "supports" all 3 combinations. - Separated damaged block from BlockBreakingService into DamagedBlock and HardnessUtil * feat: Added trueDamage property to know how much damage should be applied over the netherite tool (will have to change to our own system probably) * feat: Slowed down tiers * fix(WIP): Some recipes fail to register into bukkit * feat: Added fromBlock() companion object method to get an item from block without explicitly casting every time * feat (WIP): Added particles methods * fix: Using java reflection and DiggerItem class. - Issue was probably not related to kotlin reflections * fix: Deleted listener converter because items were loosing their durability, and it's not necessary already * feat: Added tool correct check that is true when tier and type are both correct * fix: Fixed condition related to custom block breaking * feat: Tools are now wooden to make breaking speed more trickable * feat: Custom durability Added DamageableItem interface to make an easier way to damage and refresh items damage, as Weapons (and maybe others) will exist and are not Tools at all. * fix: Enchanting non-existent netherite items so Bukkit naturally breaks those blocks without minding the tier * refactor: Simplified event registers * feat: Added particles and fixed sound * feat: Added hit sound to custom blocks * feat: Using Kotlin reflections instead of Java's * fix: Tier and type correctness are now checked by using the Netherite tools * fix: Player is now detected grounded when not flying and Y velocity is 0 Not the most scientifically approved fix, but it actually works better than before. * bug: Ignoring bug for the moment, help needed. * style: Fixed icons showing as :icon: instead of the actual icon in IDEs * docs: Added how to build section * docs: Improved Readme and Contribution with extensive information * docs(fix): Improved Readme and Contribution with extensive information --------- Co-authored-by: Daniel Maile <73589772+dm432@users.noreply.github.com>
Release MPP-0.1.331-1.19.4-SNAPSHOT
feat: Items rework (#42) * feat(wip): Added gravitite and zanite armors * feat: Added block items. Have to think whether to group block items with blocks * feat: Added sticks, zanitite stone and gravitite plate as ingredients * feat: Created item interface Having a problem with it as it doesn't access enum properties, so I can't use default method to register easily * feat: Created item registry Having to think whether to add blocks to it * feat: Added all planned tools to Tools.kt, created tool tier and tool type Have to think whether to use the same Material for each type as speed and other values are not given by the mc tool tier but instead by the plugins tool tier. * fix: Item interface can now read enum names, so I can now use a default register for each enum value * feat: Tools now use the same Minecraft item based on their type. * feat: Added armor materials to store each material data * feat: Added ArmorMaterial and created Armor special Item Meta modifier for colors * refactor: Deprecated class about to be deleted * feat: Added ItemStack creator * feat: Added ItemStack special getters to ItemRegistry * feat: Registering items on plugin start * refactor: Fixed typo in Gravitite * feat: Added a way to get all items as a list for PackBuilder * feat: PackBuilder now uses ItemRegistry and ArmorMaterial to build the pack * feat: Deleted unused armor textures to prevent errors on pack building * refactor: Renamed to a more descriptive name * feat: Created a simple armor listener * feat: Added armor toughness value and made ArmorProtection public * feat: Removed old classes * feat: Now uses new Items and gets block drops from Blocks * feat: Added a way to get the corresponding item to a block * feat: Used apply method and added an amount parameter to ItemStack * feat: Made getItemByID public * feat: Put old methods aside and added new armor listener * feat: Added tool ingredients to make smart recipes * refactor: Renamed RP Builder class to a more descriptive name * feat: Made items register a static method * feat: Changed ItemStack List to Array * feat: Created an algorithm to make all possible recipes automatically * style: Formatted with ktlint * feat: Created a test for ItemRegistry Can't test getIdFromItemstack and getItemFromItemstack as they depend on Bukkit * feat: Added tests (Kotlin and JUnit) to the project * fix: Changed listOf to arrayOf because of the change on ShapedRecipe * feat: Removed unused methods and made private getItemID() public * feat: Created a test for ShapedRecipe which tells that the algorithm doesn't work, so the algorithm needs to be fixed. * feat: Added a model offset for each enum to use temporarily * feat: Added many recipe tests * feat: Added a check for repeated ids * refactor: Deprecated unnecessary variable method * refactor: Removed old models that are not used anymore * feat: Removed model offset. Using hash again. * fix: Fixed model leaking by ordering model id * feat: Using data class instead of a simple class * fix: Fixed vanilla leather armor inventory item as Minecraft changed the textures from 1.18 to 1.19 * feat (unstable): Started looking at having our own packet handler. * refactor: Removed unused code * refactor: Removed unused block types * refactor: Removed deleted classes * refactor: Removed PacketListener and made PacketHandler an object * feat: Created a bukkit-like event handler for packets * feat: Implemented a data class to manage all listeners and not call the getGenericType method on each packet and listener. Also implemented life-cycle methods to prevent breaking on reloads and similar methods Reduced as well the code used by extracting the packet sending method * feat: Added an essential property to Packet Event, the Player * docs: Improved some documentation * feat: Now using mainly Kotlin reflections, added many errors for developers. * feat: Created a method to register packet related listeners * feat: Now using mainly Kotlin reflections, added many errors for developers. * refactor: Re-added aether leaves * feat: deprecated Protocollib code * feat: added a method to easily send a packet to a player * refactor: renamed initializing method * feat: removed protocol lib. All methods use PacketHandler now * chore: ignoring two unit tests for unrelated errors * feat: added some more tests and cleaned up by extracting getRecipeArrays reflection * fix: fixed a problem with complex recipes * feat: totally removed Protocollib * feat: Added tools and armors recipes Also, updated all recipes to the new system * feat: removed Protocollib from README.md * feat: added mockk test dependency * feat: added recipes for some blocks * feat: embedded ToolType enum into Tools * fix: fixed methods name collision * feat: Added ingredients recipes * feat: removed old items and blocks from locales and resource pack * fix: fixed recipes error on init
Release MPP-0.1.330-1.19.4-SNAPSHOT
Merge pull request #41 from dm432/feature/create-block-data feat: Added a method to easily create block data for each custom block
Release MPP-0.1.326-1.19.4-SNAPSHOT
Merge pull request #39 from dm432/feature/rework-skull-factory Removed reflection from the SkullFactory
Release MPP-0.1.324-1.19.4-SNAPSHOT
Merge pull request #38 from dm432/feature/local-pack-hosting feat: add local resource pack hosting for dev environment
Release MPP-0.1.321-1.19.4-SNAPSHOT
Merge pull request #37 from dm432/fix/workflow fix: workflow
Release MPP-0.1.319-1.19.4-SNAPSHOT
Merge pull request #36 from dm432/feature/pack-hosting-rework feat: Resource Pack can now be generated by a gradle task and is provided to the users via github releases