Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
4cc26be8342a80d0959efb4e622b1cc2fd01c47f
PocketMine-MP
/
src
/
block
/
utils
下载当前目录
D
Dylan T.
Implemented bamboo material blocks
2f443e88
创建于
2025年12月21日
历史提交
文件
最后提交记录
最后更新时间
Ageable.php
Ageable: added getMaxAge() we'll probably need this...
8 个月前
AgeableTrait.php
Ageable: added getMaxAge() we'll probably need this...
8 个月前
AmethystTrait.php
Implemented budding amethyst and amethyst clusters
2 年前
AnalogRedstoneSignalEmitter.php
Add blocks interfaces for commons properties (#6639)
9 个月前
AnalogRedstoneSignalEmitterTrait.php
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 年前
AnyFacing.php
Add blocks interfaces for commons properties (#6639)
9 个月前
AnyFacingTrait.php
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 年前
BannerPatternLayer.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
BannerPatternType.php
Added 1.21 banner patterns.
1 年前
BellAttachmentType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
BlockEventHelper.php
Reduce repeated block-change-event related code the new helper code reveals even more repetition, but this is at least consistent now.
2 年前
BrewingStandSlot.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
CandleTrait.php
Fixup PHPDoc for blocks
1 年前
ChiseledBookshelfSlot.php
Implement Chiseled Bookshelf (#5827)
2 年前
Colored.php
Add blocks interfaces for commons properties (#6639)
9 个月前
ColoredTrait.php
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.php
CopperMaterial: fixed missing @return $this docs
1 年前
CopperOxidation.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
CopperTrait.php
Fixup PHPDoc for blocks
1 年前
CoralMaterial.php
Add blocks interfaces for commons properties (#6639)
9 个月前
CoralType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
CoralTypeTrait.php
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 年前
CropGrowthHelper.php
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 年前
DirtType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
DripleafState.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
DyeColor.php
Migrate all but two remaining legacy enums to native PHP 8.1 enums
2 年前
FacesOppositePlacingPlayerTrait.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
Fallable.php
Implement anvil fall damage (#5312)
3 年前
FallableTrait.php
Implement anvil fall damage (#5312)
3 年前
FortuneDropHelper.php
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 年前
FroglightType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
HorizontalFacing.php
Add blocks interfaces for commons properties (#6639)
9 个月前
HorizontalFacingTrait.php
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 年前
LeavesType.php
Implement new pale oak blocks (#6570)
1 年前
LeverFacing.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
Lightable.php
Add blocks interfaces for commons properties (#6639)
9 个月前
LightableTrait.php
Create LightableTrait and remove repetitive code (#6111)
2 年前
MinimumCostFlowCalculator.php
Liquid: Update legacy code with Facing::OFFSET
2 年前
MobHeadType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
MultiAnyFacing.php
Rename MultiFacing -> MultiAnyFacing to match the trait name
8 个月前
MultiAnyFacingTrait.php
Extract glow lichen multi face logic into traits (#6396) This will be useful for future block additions
1 年前
MultiAnySupportTrait.php
Extract glow lichen multi face logic into traits (#6396) This will be useful for future block additions
1 年前
MushroomBlockType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
PillarRotation.php
Add blocks interfaces for commons properties (#6639)
9 个月前
PillarRotationTrait.php
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 年前
PoweredByRedstone.php
Add blocks interfaces for commons properties (#6639)
9 个月前
PoweredByRedstoneTrait.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
RailConnectionInfo.php
Move BlockLegacyMetadata to pocketmine\data package
3 年前
RailPoweredByRedstoneTrait.php
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 年前
RecordType.php
Add Lava Chicken music disc
4 个月前
SaplingType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
SignLikeRotation.php
Add blocks interfaces for commons properties (#6639)
9 个月前
SignLikeRotationTrait.php
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 年前
SignText.php
New rule: explode() limit parameter must be set
1 年前
SlabType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
StairShape.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
StaticSupportTrait.php
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 年前
SupportType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
TallGrassTrait.php
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 年前
WallConnectionType.php
Start migrating EnumTrait enums to PHP 8.1 native enums
2 年前
WoodMaterial.php
Add blocks interfaces for commons properties (#6639)
9 个月前
WoodType.php
Implemented bamboo material blocks this required a hack for all-sided logs, since bamboo doesn't have any such block
4 个月前
WoodTypeTrait.php
Fix CS
3 年前