Dylan K. Taylor
e3d44ea656
Merge branch 'major-next' into inventory-rework
2025-04-30 20:05:56 +01:00
pmmp-admin-bot[bot]
baee0110c7
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14544397106
2025-04-19 01:36:21 +00:00
zSALLAZAR
028815490e
Add EntityExtinguishEvent ( #6671 )
2025-04-18 11:19:46 +02:00
Dylan T.
49aa1986bb
Merge branch 'major-next' into inventory-rework
2025-02-04 16:47:18 +00:00
pmmp-admin-bot[bot]
976fc63567
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/12701510185
2025-01-10 01:26:17 +00:00
Sergi del Olmo
f349ce75e4
Player: add ability to get & set flight speed multiplier ( #6076 )
...
Since this doesn't directly correspond to flight speed (it's multiplied by different values depending on whether sprinting or not, and possibly other states), "multiplier" was preferred instead of directly calling it flight speed.
Default value is 0.05.
2025-01-09 20:13:46 +00:00
Dylan K. Taylor
02ac512b4e
Merge branch 'minor-next' into major-next
2025-01-08 15:25:12 +00:00
Dylan K. Taylor
cd59e272bc
PHPStan 2.0 fixes
2025-01-07 22:10:42 +00:00
Dylan T.
6578d65cd8
Merge branch 'major-next' into inventory-rework
2024-12-06 12:58:03 +00:00
pmmp-restrictedactions-bot[bot]
007673cb96
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/12111121061
2024-12-02 01:41:02 +00:00
IvanCraft623
f3763ae691
Implement Recovery compass ( #5502 )
...
Co-authored-by: Dylan K. Taylor <dktapps@pmmp.io>
2024-12-01 18:25:45 +00:00
Dylan K. Taylor
12214792b3
Allow eating in creative & peaceful
...
closes #5923
closes #6056
2024-12-01 17:42:26 +00:00
Dylan K. Taylor
4dcc14e0a1
Integrate block container animations and SFX into Block classes by way of AnimatedContainer interface
...
this allows getting rid of several container window classes.
we should probably look into adding more info to the BlockInventoryWindow to make the type easier to identify, though.
now that holder is tracked by an ephemeral window, we can put whatever we like in there.
2024-11-25 10:55:35 +00:00
Dylan K. Taylor
45a4282e8b
First look: Split up Inventory & InventoryWindow
...
this unblocks a variety of changes, such as positionless tiles, enhanced APIs on Blocks for inventories, and also eliminates a bunch of cyclic references within the core code.
linked to #5033
2024-11-24 21:40:47 +00:00
Dylan K. Taylor
f98cebbd62
Separate hotbar from player inventory
...
this allows this functionality to be used with any type of inventory, and also makes it a little nicer to use in many cases.
2024-11-24 17:58:58 +00:00
pmmp-restrictedactions-bot[bot]
c61434d87b
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11964819241
2024-11-22 01:36:17 +00:00
pmmp-restrictedactions-bot[bot]
a523ed6e40
Merge 'stable' into 'minor-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11964819241
2024-11-22 01:36:16 +00:00
GameParrot
7c2ed7d884
Fix insta break check ( #6528 )
2024-11-21 02:22:10 +00:00
pmmp-restrictedactions-bot[bot]
9e2d91bae6
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11865975725
2024-11-16 01:26:32 +00:00
Javier León
d3add78d3e
Add support for basic entity picking via middle-click ( #5397 )
...
Support for more advanced stuff like NBT copying wasn't added in this PR, as the NBT used by PM is currently an inconsistent mess and doesn't play nice with vanilla. In the interests of avoiding this mess propagating, it's been left for another time.
Adds PlayerEntityPickEvent a la PlayerBlockPickEvent
and Entity->getPickedItem().
2024-11-15 21:27:10 +00:00
github-actions
80b7f6aba4
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11769186885
2024-11-10 22:56:09 +00:00
ipad54
2ff6470792
Fixed server crash when applying item cooldown ( #6491 )
...
This commit fixes server crash when applying a cooldown to any item which count is equals to 1.
closes #6490
closes #6488
2024-11-10 19:15:30 +00:00
github-actions
1ef854f2d1
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11392123557
2024-10-17 19:59:15 +00:00
ipad54
f6e6f15c63
Implemented a proper way to handle items cooldown ( #6405 )
2024-09-25 13:28:17 -05:00
Dylan K. Taylor
c9e8d382c5
Merge branch 'minor-next' of github.com:pmmp/PocketMine-MP into major-next
2024-08-09 13:33:07 +01:00
IvanCraft623
5d60ba36b7
Support for 1.21.2
2024-07-09 21:07:47 -05:00
Dylan K. Taylor
e781c64540
Merge branch 'minor-next' into major-next
2024-03-14 12:47:18 +00:00
Dylan K. Taylor
ba48f258f3
Support for 1.20.70
2024-03-13 14:53:27 +00:00
IvanCraft623
920341668f
Implemented working Name tag ( #5209 )
2024-02-19 18:46:48 +00:00
Dylan K. Taylor
4d337add7c
Merge branch 'minor-next' into major-next
2023-12-14 14:03:09 +00:00
Dylan K. Taylor
fbcf4649eb
Avoid unnecessary Entity::getWorld() calls in loops
2023-11-17 13:58:41 +00:00
Dylan K. Taylor
d565be93a8
Merge branch 'minor-next' into major-next
2023-10-24 11:57:30 +01:00
Dylan K. Taylor
f655eda3b3
Player: bypass slow function call
...
for some reason the isSpectator() call here can take upwards of 2 microseconds, for no obvious reason. Subsequent calls are much faster, so I think there's some weird cache thing going on here.
2023-10-23 16:05:13 +01:00
zSALLAZAR
e32a90be72
Make Player->getFirstPlayed() and Player->getLastPlayed() return DateTimeImmutable ( #6042 )
2023-10-17 16:26:21 +01:00
Dylan K. Taylor
7ce33d9375
Migrate final remaining EnumTrait users to native enums
2023-09-08 10:34:12 +01:00
Dylan K. Taylor
ae564e445d
Start migrating EnumTrait enums to PHP 8.1 native enums
2023-09-07 17:20:52 +01:00
Dylan K. Taylor
31d8cc1cb5
Generate and use constants for pocketmine.yml constant names
...
a couple of usages of properties that no longer exist couldn't be migrated.
in addition, this revealed a couple of dead properties in the default file.
this is not an ideal solution (I'd much rather model the configs using classes and map them) but in the absence of a good and reliable library to do that, this is the next best thing.
2023-08-25 13:23:38 +01:00
Dylan K. Taylor
d1a7c1d453
Constify server.properties references
2023-08-25 12:49:39 +01:00
Dylan K. Taylor
d03e4d17ec
Use hasHandlers() for events in player movement processing pathway
...
this should offer a minor performance improvement.
2023-08-23 14:26:17 +01:00
Dylan K. Taylor
46f24b165a
Rename PlayerMissedSwingEvent -> PlayerMissSwingEvent
...
all the other events are present tense, so it doesn't make sense for this one to be past tense.
2023-08-01 12:21:39 +01:00
rasu3n
bbdcab7277
Player: Added animation to missSwing() ( #5942 )
2023-07-26 10:04:36 +01:00
ipad54
6086ef667c
Added handling for attack-air action ( #5912 )
2023-07-25 14:50:28 +01:00
Dylan K. Taylor
fba51e3bf9
Merge branch 'stable' into minor-next
2023-07-19 13:22:07 +01:00
Dylan K. Taylor
763241b11f
Fixed burning animations for fireproof entities
...
creative players are not technically fireproof; they just don't take any damage from fire
2023-07-19 12:32:00 +01:00
BrandPVP
c01d2dc718
CreativeInventory per Player ( #5694 )
2023-07-06 11:08:13 +01:00
Artem Vasyagin
391732f00c
Fix Player->setGamemode()
doc comment ( #5848 )
...
this has been outdated likely since the 1.3 alpha days.
2023-06-21 09:29:48 +01:00
Dylan K. Taylor
0ed5e94a72
Merge branch 'minor-next' into major-next
2023-05-30 16:15:56 +01:00
BrandPVP
8245cfab0e
PlayerDeathEvent: add ability to set message displayed on the death screen ( #5726 )
2023-05-19 16:18:18 +01:00
Dylan K. Taylor
ee9ce8a4f4
Merge branch 'minor-next' into major-next
2023-05-17 15:45:03 +01:00
Dylan K. Taylor
008a022ec1
Players now have finite resources in spectator mode
...
this seems like the logical solution for the block picking issues.
2023-05-16 23:02:33 +01:00