2f443e88创建于 2025年12月21日历史提交
文件最后提交记录最后更新时间
Ageable: added getMaxAge() we'll probably need this... 8 个月前
Ageable: added getMaxAge() we'll probably need this... 8 个月前
Implemented budding amethyst and amethyst clusters 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
RuntimeDataDescriber: Introduce boundedIntAuto, replacing boundedInt closes #6096 boundedIntAuto automatically calculates the correct number of bits to use based on the given bounds. The bounds must be constant, of course. 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
Change confusing 'type data' and 'state data' terminology for blocks and items For blocks, we now use 'block-item state' and 'block-only state', which should be much clearer for people implementing custom stuff. 'block-item state', as the name suggests, sticks to the item when the block is acquired as an item. 'block-only state' applies only to the block and is discarded when the block is acquired as an item. 'type data' for items was also renamed, since 'type' is too ambiguous to be anything but super confusing. 2 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Added 1.21 banner patterns. 1 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Reduce repeated block-change-event related code the new helper code reveals even more repetition, but this is at least consistent now. 2 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Fixup PHPDoc for blocks 1 年前
Implement Chiseled Bookshelf (#5827) 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
RuntimeDataDescriber: Support dynamically describing arbitrary enums (#6039) Previously, we were using codegen to support describing a fixed set of enums. Instead, we implement an enum() function, allowing any native PHP enum to be described. All enums used in runtime data have been migrated to native PHP 8.1 enums in minor-next to facilitate this. This implementation: - is faster (in extreme cases by 40x, such as with PotionType) - requires way less code - does not require a build step - is way more flexible This fixes #5877, increasing the range of stuff that plugins are now able to do. EnumTrait enums are not supported, as it's easier and cleaner to just support native enums. Most core EnumTrait enums have been migrated to native enums by now to facilitate this.2 年前
CopperMaterial: fixed missing @return $this docs 1 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Fixup PHPDoc for blocks 1 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
RuntimeDataDescriber: Support dynamically describing arbitrary enums (#6039) Previously, we were using codegen to support describing a fixed set of enums. Instead, we implement an enum() function, allowing any native PHP enum to be described. All enums used in runtime data have been migrated to native PHP 8.1 enums in minor-next to facilitate this. This implementation: - is faster (in extreme cases by 40x, such as with PotionType) - requires way less code - does not require a build step - is way more flexible This fixes #5877, increasing the range of stuff that plugins are now able to do. EnumTrait enums are not supported, as it's easier and cleaner to just support native enums. Most core EnumTrait enums have been migrated to native enums by now to facilitate this.2 年前
World: don't assume that random Vector3 are int vectors we can safely assume this for blocks (though the type info doesn't reflect it) but this is not safe to assume for random APIs that might be used by plugins. 2 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Migrate all but two remaining legacy enums to native PHP 8.1 enums 2 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Implement anvil fall damage (#5312) 3 年前
Implement anvil fall damage (#5312) 3 年前
Added TallGrassTrait, remove weirdly specific logic from FortuneDropHelper this needs to be dealt with before release otherwise we'll be stuck with FortuneDropHelper::grass() this is the obvious solution and should have been done some time ago - stuff like flammability was already a problem for double tall grass anyway 2 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
Change confusing 'type data' and 'state data' terminology for blocks and items For blocks, we now use 'block-item state' and 'block-only state', which should be much clearer for people implementing custom stuff. 'block-item state', as the name suggests, sticks to the item when the block is acquired as an item. 'block-only state' applies only to the block and is discarded when the block is acquired as an item. 'type data' for items was also renamed, since 'type' is too ambiguous to be anything but super confusing. 2 年前
Implement new pale oak blocks (#6570) 1 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
Create LightableTrait and remove repetitive code (#6111) 2 年前
Liquid: Update legacy code with Facing::OFFSET 2 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Rename MultiFacing -> MultiAnyFacing to match the trait name 8 个月前
Extract glow lichen multi face logic into traits (#6396) This will be useful for future block additions1 年前
Extract glow lichen multi face logic into traits (#6396) This will be useful for future block additions1 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
Change confusing 'type data' and 'state data' terminology for blocks and items For blocks, we now use 'block-item state' and 'block-only state', which should be much clearer for people implementing custom stuff. 'block-item state', as the name suggests, sticks to the item when the block is acquired as an item. 'block-only state' applies only to the block and is discarded when the block is acquired as an item. 'type data' for items was also renamed, since 'type' is too ambiguous to be anything but super confusing. 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Move BlockLegacyMetadata to pocketmine\data package 3 年前
Change confusing 'type data' and 'state data' terminology for blocks and items For blocks, we now use 'block-item state' and 'block-only state', which should be much clearer for people implementing custom stuff. 'block-item state', as the name suggests, sticks to the item when the block is acquired as an item. 'block-only state' applies only to the block and is discarded when the block is acquired as an item. 'type data' for items was also renamed, since 'type' is too ambiguous to be anything but super confusing. 2 年前
Add Lava Chicken music disc 4 个月前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
RuntimeDataDescriber: Introduce boundedIntAuto, replacing boundedInt closes #6096 boundedIntAuto automatically calculates the correct number of bits to use based on the given bounds. The bounds must be constant, of course. 2 年前
New rule: explode() limit parameter must be set 1 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Static support trait (#6044) Added StaticSupportTrait for blocks which require unconditional support dynamic support requirements, such as those presented by item frames and torches, are not included. in addition, double blocks, such as tallgrass, small dripleaf and doors, do not cooperate well with this, so they are also not included. some blocks which could be migrated (such as chorus plant) were skipped due to unresolved problems.2 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Added TallGrassTrait, remove weirdly specific logic from FortuneDropHelper this needs to be dealt with before release otherwise we'll be stuck with FortuneDropHelper::grass() this is the obvious solution and should have been done some time ago - stuff like flammability was already a problem for double tall grass anyway 2 年前
Start migrating EnumTrait enums to PHP 8.1 native enums 2 年前
Add blocks interfaces for commons properties (#6639) 9 个月前
Implemented bamboo material blocks this required a hack for all-sided logs, since bamboo doesn't have any such block 4 个月前
Fix CS 3 年前