Dylan K. Taylor
b2ca364de0
SplashPotion: Don't apply effects to entities which are not alive
...
fixes #2372
2018-08-14 15:03:15 +01:00
Dylan K. Taylor
2d3ce9e8b0
Remove some fully qualified function calls
...
PhpStorm can't see these or understand how they are being called, which is very annoying for bug hunting. Additionally, we already have the CodeOptimizer for this.
2018-06-18 12:23:19 +01:00
Dylan K. Taylor
37b445f210
Updated Math dependency
2018-06-09 13:05:25 +01:00
Dylan K. Taylor
9dd0ee7f05
Entity: replaced motion and lastMotion fields with vectors
2018-05-24 12:11:41 +01:00
Dylan K. Taylor
0bb5e88b5c
Hinting up Entity API to PHP 7.2 standards
2018-05-19 10:46:47 +01:00
Dylan K. Taylor
73e09392b6
Timings: Clean up some terrible code, move namespaces
2018-03-19 19:05:51 +00:00
Dylan K. Taylor
fa644edef3
Entity: removed redundant return values for move()
2018-03-14 13:39:23 +00:00
Dylan K. Taylor
ad09e8c8d0
Implemented Bottle o' Enchanting
2018-03-10 10:53:03 +00:00
Dylan K. Taylor
486edf0e55
Projectile: remove redundant parent onHit() calls
2018-03-10 10:31:24 +00:00
Dylan K. Taylor
2ee01eb195
Projectile: fix stupidity with collided block IDs
2018-03-09 21:50:27 +00:00
Dylan K. Taylor
cc1a3d695f
Implemented basic Ender Pearls
...
this doesn't have full functionality yet (like spawning endermites) because some things aren't implemented yet.
2018-03-09 19:05:14 +00:00
Dylan K. Taylor
74cff89df3
Instant Damage splash potions now deal knockback
2018-03-09 12:52:09 +00:00
Dylan K. Taylor
a9957c3db3
Water bottles extinguish fires when hitting a block
2018-03-09 12:25:34 +00:00
Dylan K. Taylor
2e9bf7e93b
Implemented Splash Potions
2018-03-09 12:25:02 +00:00
Dylan K. Taylor
cdd3fe81e1
Projectile: allow using negative damage amounts to remove damage effects
2018-03-09 11:35:08 +00:00
Dylan K. Taylor
a8a3eb3866
Added particles for snowballs and eggs
2018-03-09 11:35:07 +00:00
Dylan K. Taylor
83a3c6f614
Arrow: added shake effect and strike sound
2018-03-09 11:35:07 +00:00
Dylan K. Taylor
8cc6a32a04
Rewritten Projectile movement handling, added ProjectileHitBlockEvent and ProjectileHitEntityEvent, fixed a swathe of arrow-related bugs
...
I usually avoid mega-commits, but one thing led to another.
2018-03-09 11:35:07 +00:00
Dylan K. Taylor
2ff3b12376
Cleaned up projectile "collide" checks
2018-03-04 12:19:41 +00:00
Muqsit
29e06e30b2
Fix projectiles throwing errors on launching, fix #1942 ( #1943 )
...
* Fix Projectile::setOwningEntity() on null error
2018-01-20 18:07:53 +00:00
Encritary
2e1a167bed
Arrow class: No need to import Item class with other name ( #1932 )
2018-01-17 10:59:50 +00:00
Dylan K. Taylor
45b02d92d4
Math: Added RayTraceResult, removed dependence on MovingObjectPosition
...
MOP doesn't make any sense anyway.
RayTraceResult is a container which represents the point at which a line hits a bounding box. No dependence on blocks or entities is wanted or needed.
MovingObjectPosition has API changes to allow it to wrap RayTraceResult, but nothing uses MOP anymore anyway.
This would allow modularisation of the pocketmine\\math namespace.
2018-01-12 14:28:41 +00:00
Dylan K. Taylor
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
Dylan K. Taylor
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
Dylan K. Taylor
3a16985d45
Cleaned up item & arrow pickup code
2017-11-15 12:14:42 +00:00
Dylan K. Taylor
aa399a1109
migrate to new CompoundTag API ( #1515 )
2017-11-10 15:38:21 +00:00
Dylan K. Taylor
0e64c3dad8
fixed misusing isAlive(), close #1523
2017-11-07 09:32:38 +00:00
Dylan K. Taylor
eab7b93483
Fixed misuse of kill() and close() when deleting entities ( #1490 )
2017-11-04 19:30:48 +00:00
Dylan K. Taylor
9fb93985d6
Cleaned up Entity->spawnTo()
2017-10-19 16:13:09 +01:00
Dylan K. Taylor
2b22d5d8cc
Added EntityIds interface with constants
2017-10-19 15:43:55 +01:00
Dylan K. Taylor
2db13bd114
added throwable eggs and refactor some projectile logic
...
close #1473
2017-10-19 14:12:50 +01:00
Dylan K. Taylor
584810780a
Moved projectile-related classes to their own namespace
2017-10-19 12:27:44 +01:00