Dylan K. Taylor
21f09d5fdb
Cleaned up Effect handling and replacement
2017-08-30 12:53:41 +01:00
Dylan K. Taylor
456ddd3fb3
Removed obsolete parameters from Entity->attack() and Entity->heal()
2017-08-21 13:25:11 +01:00
Dylan K. Taylor
e825ebd8fa
Added some wrapper methods to make data flags less of a pain in the ass to work with
2017-08-17 16:52:17 +01:00
Dylan K. Taylor
6320a63ca5
Use standard format for color hex, some minor name alteration
2017-08-17 13:08:18 +01:00
Dylan K. Taylor
77376d3e33
No idea how this happened
2017-08-17 11:15:42 +01:00
Dylan K. Taylor
741394dab1
Typehinted up entity API
...
Did you guys think ALPHA7 changes were done?!
Sone stuff still needs some work, most notably data-properties can't be typed yet because they are just mushed into a couple of methods.
2017-08-16 19:04:30 +01:00
Dylan K. Taylor
313fdb9e87
Added INT32_MIN and INT32_MAX constants and an exception throw for out-of-range effect amplifiers
2017-06-14 19:38:39 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
54453d0b0a
Refactored entity IDs in packets for consistency and to clarify on types
2017-06-05 15:41:27 +01:00
Dylan K. Taylor
ad4659365a
Use default amplifier 0 instead of implicit null
...
(how did nobody ever notice this?!)
2017-06-03 11:06:22 +01:00
smarticles101
8a7259aa73
Merge #826 : use getEffectLevel() instead of getAmplifier() + 1
...
Closes #412
2017-05-05 19:01:04 +08:00
Dylan K. Taylor
1c2895eb12
Fixed absorption application logic, close #518
2017-04-05 21:16:40 +01:00
Dylan K. Taylor
9a35b4fbc8
Removed redundant TODO comment
2017-03-21 14:03:53 +00:00
Dylan K. Taylor
940b20c191
Implemented Absorption effect
...
This is a little buggy due to a client-sided bug. https://bugs.mojang.com/browse/MCPE-20520
TODO: add attribute save/restore
2017-03-21 13:23:57 +00:00
Dylan K. Taylor
c21768df26
Updated Effect constants, removed incorrect/misleading SWIFTNESS constant
...
So what? I'd rather crash plugins than have them suddenly behave strangely because SWIFTNESS is now an alias for SPEED instead of HASTE.
2017-03-21 11:49:18 +00:00
Dylan K. Taylor
2d927db264
Implemented Instant Health and Instant Damage effects
2017-03-21 11:38:08 +00:00
Dylan K. Taylor
78278a0b93
Fixed a mistake in old effect handling
2017-03-12 20:15:21 +00:00
Dylan K. Taylor
955dc38be4
Fixed botch-job implementation of Health Boost, will now actually work and not crash the server
2017-03-12 20:06:39 +00:00
Dylan K. Taylor
f58ee2028e
Moved effects stuff to json
2017-03-12 19:52:57 +00:00
Dylan K. Taylor
6c5dbd7359
Merge branch 'master' into api3/network
2017-03-12 12:22:11 +00:00
Dylan K. Taylor
7fb3c7343f
Fit attribute value to range when applying slowness, close #410
...
According to http://minecraft.gamepedia.com/Status_effect#Slowness , anything higher than slowness 7 will cause the player to be unable to move. Therefore this value should be clamped to a minimum of 0, not crash.
2017-03-09 21:01:10 +00:00
Dylan K. Taylor
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00
Dylan K. Taylor
1ee689e759
Fixed mess of entity ID 0 for players, fixed emeralds
2017-03-02 11:04:00 +00:00
Dylan K. Taylor
10c8632417
Fixed effect amplifier overflow crash, close #147 ( #191 )
2016-12-27 21:30:54 +00:00
JackNoordhuis
5d16ecc003
Entity Effect Events ( #141 )
...
Add EntityEffectEvent class that the EntityEffectAddEvent and
EntityEffectRemoveEvent classes extend. Add event calls to Effect class.
2016-12-06 11:59:49 +00:00
Dylan K. Taylor
ce72f634b0
Update some old code
2016-10-27 10:55:04 +01:00
PEMapModder
09ce8fab82
Fixed speed and slowness potions
2016-03-07 18:12:54 +08:00
PEMapModder
e79976bdac
Added events
2016-02-11 22:07:04 +08:00
PEMapModder
52e8781d36
Implemented hunger-related regen and damage
2016-02-11 01:53:51 +08:00
PEMapModder
329a525ea1
Implemented food and hunger
2016-02-10 22:49:48 +08:00
Shoghi Cervantes
31ef7721b1
Removed network channels, bumped protocol
2015-08-12 14:59:48 +02:00
Shoghi Cervantes
3e2cce3c2c
use cleanup
2015-08-07 21:26:24 +02:00
Shoghi Cervantes
ef738ef299
Fixed effect entity id
2015-06-19 15:34:33 +02:00
Shoghi Cervantes
c0782caab9
Added alternate name for Swiftness
2015-04-15 16:15:17 +02:00
Shoghi Cervantes
68ea9b067f
Added health boost potion effect, added Player->sendTip(), MCPE 0.11.0 build 4
2015-04-15 12:33:16 +02:00
Shoghi Cervantes
0b176b3fe0
Implemented Channeled packet sending
2015-04-14 18:24:40 +02:00
Shoghi Cervantes
410f6ba618
Fixed some potion effect names
2015-04-12 12:46:06 +02:00
Shoghi Cervantes
0c041ebca3
Added base translation system
2015-04-11 01:32:08 +02:00
Shoghi Cervantes
71657a2a4e
Improved effects, threading changes
2015-04-08 17:31:06 +02:00
Shoghi Cervantes
3cae81c01b
Added Nausea effect
2015-04-08 13:40:48 +02:00
Shoghi Cervantes
d5ba2a72a5
Added strength, weakness, resistance effects, fixed entity area
2015-03-29 14:49:47 +02:00
Shoghi Cervantes
58253be0a0
Implemented swiftness, added invisible status to FloatingTextParticle
2015-03-20 17:19:06 +01:00
Shoghi Cervantes
ebc8928c21
Implemented effect colors
2015-03-20 02:31:54 +01:00
Shoghi Cervantes
275a1e3f60
Water breathing potion
2015-03-19 10:14:35 +01:00
Shoghi Cervantes
2ae80031f0
New implementation of sending/setting/getting entity data, added effect saving
2015-03-17 00:01:54 +01:00
Shoghi Cervantes
bc31df37d0
Added invisibility potion, metadata sending for invisibility/nametags
2015-03-16 19:05:31 +01:00
Shoghi Cervantes
4ec584d800
Added real memory and thread usage
2015-03-16 11:56:00 +01:00
Shoghi Cervantes
4383e272eb
Added Effects base, /effect and methods
2015-03-15 23:15:54 +01:00