文件最后提交记录最后更新时间
Updated NBT library to get new ListTag handling features 7 个月前
Merge branch 'next-minor' into next-major 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Fix CS 2 年前
Hit block legacy metadata with the biggest nuke you've ever seen This commit completely revamps the way that blocks are represented in memory at runtime. Instead of being represented by legacy Mojang block IDs and metadata, which are dated, limited and unchangeable, we now use custom PM block IDs, which are generated from VanillaBlocks. This means we have full control of how they are assigned, which opens the doors to finally addressing inconsistencies like glazed terracotta, stripped logs handling, etc. To represent state, BlockDataReader and BlockDataWriter have been introduced, and are used by blocks with state information to pack said information into a binary form that can be stored on a chunk at runtime. Conceptually it's pretty similar to legacy metadata, but the actual format shares no resemblance whatsoever to legacy metadata, and is fully controlled by PM. This means that the 'state data' may change in serialization format at any time, so it should **NOT** be stored on disk or in a config. In the future, this will be improved using more auto-generated code and attributes, instead of hand-baked decodeState() and encodeState(). For now, this opens the gateway to a significant expansion of features. It's not ideal, but it's a big step forwards. 3 年前
Migrate all but two remaining legacy enums to native PHP 8.1 enums 2 年前
Merge branch 'next-minor' into next-major 3 年前
Avoid unnecessary data loss on invalid items in inventories we were already doing this in some places but not others. So inconsistent... while this doesn't fix the root cause of #5128, it should nonetheless fix #5128 as well as not destroying player data on unknown items, which was a frequent annoyance when switching between branches during PR testing. 7 个月前
Implement Lingering potion & Area Effect Cloud (#5276) Co-authored-by: Dylan T. <dktapps@pmmp.io>7 个月前
block: clean up unnecessary getter usages with the assistance of a custom phpstan rule this inconsistent mess has been bothering me for a long time 2 年前
Avoid unnecessary data loss on invalid items in inventories we were already doing this in some places but not others. So inconsistent... while this doesn't fix the root cause of #5128, it should nonetheless fix #5128 as well as not destroying player data on unknown items, which was a frequent annoyance when switching between branches during PR testing. 7 个月前
Merge branch 'next-minor' into next-major 3 年前
Merge branch 'next-minor' into next-major 3 年前
Avoid unnecessary data loss on invalid items in inventories we were already doing this in some places but not others. So inconsistent... while this doesn't fix the root cause of #5128, it should nonetheless fix #5128 as well as not destroying player data on unknown items, which was a frequent annoyance when switching between branches during PR testing. 7 个月前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
BlockTranslator: use less ambiguous function names 2 年前
Use Item->canStackWith() instead of Item->equals() wherever possible 3 年前
Fixed glowing item frames due to technical limitations, this requires separating them back into two different block types. However, this isn't too egregious since it's just one flag, and actually simplifies some code. closes #5478 3 年前
CS again 8 个月前
Merge branch 'next-minor' into next-major 3 年前
Avoid unnecessary data loss on invalid items in inventories we were already doing this in some places but not others. So inconsistent... while this doesn't fix the root cause of #5128, it should nonetheless fix #5128 as well as not destroying player data on unknown items, which was a frequent annoyance when switching between branches during PR testing. 7 个月前
Avoid unnecessary data loss on invalid items in inventories we were already doing this in some places but not others. So inconsistent... while this doesn't fix the root cause of #5128, it should nonetheless fix #5128 as well as not destroying player data on unknown items, which was a frequent annoyance when switching between branches during PR testing. 7 个月前
Avoid unnecessary data loss on invalid items in inventories we were already doing this in some places but not others. So inconsistent... while this doesn't fix the root cause of #5128, it should nonetheless fix #5128 as well as not destroying player data on unknown items, which was a frequent annoyance when switching between branches during PR testing. 7 个月前
Skull: Use newer tile NBT for rotation (#6995) 3 个月前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Migrate all but two remaining legacy enums to native PHP 8.1 enums 2 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Merge branch 'next-minor' into next-major 3 年前
Support editing the back side of signs (#6774) * Deprecate BaseSign get/set/updateText(), add get/set/updateFaceText() which accepts true/false for front/back * add isFrontFace() to SignChangeEvent * add optional frontFace to Player::openSignEditor() * add BaseSign::getFacingDegrees() and getHitboxCenter() which need to be implemented by subclasses8 个月前
Migrate all but two remaining legacy enums to native PHP 8.1 enums 2 年前
Update PHP-CS-Fixer 1 年前
fix CS again 3 年前
ÂInsert PM data version into blockstates, chunks, entities, tiles and level.dat this information will allow us to correct for any bugs introduced by past versions. however, we still need to propagate this information to permit actually using it when loading data. 2 年前
CS again 8 个月前