Dylan K. Taylor
de0741f727
Item: remove unused imports
2018-01-26 17:12:00 -05:00
Dylan K. Taylor
6c8a1a5b80
Item: Remove redundant Level parameter from onActivate()
...
there are three other sources this could be gotten from, an arbitrary level doesn't make sense.
2018-01-25 10:15:36 +00:00
Dylan K. Taylor
1e67360048
SpawnEgg: Remove redundant isSurvival() check
2018-01-18 17:04:25 +00:00
Dylan K. Taylor
d1db27016e
s/facePos/clickVector/
...
clickVector better describes this
2017-10-27 19:05:26 +01:00
Dylan K. Taylor
50be26958a
Added a helper function Entity->createBaseNBT() to cut down on boilerplate code
2017-10-19 17:36:51 +01:00
Dylan K. Taylor
769a50faa5
Refactor confusing parameter names for Item->onActivate()
...
next: refactor the function itself
2017-10-16 13:30:36 +01:00
Dylan K. Taylor
9e142655ea
Removed redundant count parameter from item constructors, added some documentation and tightened safety checks
...
the count parameter is useless since Item ctor should now only be used for constructing item _types_, not actual items. All item creations for inventories etc, should go through the ItemFactory.
2017-08-25 19:06:23 +01:00
Dylan K. Taylor
e1d894057c
Changed face position floating-point params to Vector3s
2017-08-20 10:23:34 +01:00
Dylan K. Taylor
6ae24c5c19
Removed unnecessary methods Block->canBeActivated() and Item->canBeActivated() (needless extra confusion)
2017-07-30 18:14:43 +01:00
Dylan K. Taylor
a4b8dd43e6
Removed useless confusing array indices in CompoundTag constructors ( #1116 )
2017-06-20 12:11:24 +01:00
Dylan K. Taylor
846be84324
Fixed all file headers
2017-06-16 16:18:16 +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
c21197ef17
Removed entanglement between chunks and providers. WARNING: BREAKING API CHANGES.
...
- All entity and tile constructors now require a \pocketmine\level\Level instead of a \pocketmine\level\format\Chunk.
- Chunk->getProvider() and Chunk->setProvider() have been removed.
- Chunk::__construct() has had the $provider parameter removed.
- Chunk->unload() has had the unused $save parameter removed.
- ChunkEvents now take a Level parameter instead of going through the Chunk
API bump to 3.0.0-ALPHA4
2017-02-21 17:08:45 +00:00
Dylan K. Taylor
4c49db6036
New generic in-memory chunk format, fixed 0.17.0.1 chunk loading
...
Terrible performance, needs profiling. TODO: fix this.
2016-11-27 21:57:59 +00:00
PEMapModder
329a525ea1
Implemented food and hunger
2016-02-10 22:49:48 +08:00
Shoghi Cervantes
7f8b39a63c
Renamed NBT tags to have Tag in the name
2015-08-23 00:25:29 +02:00
Shoghi Cervantes
d4163ea01c
Added sneaking, sprinting
2015-08-08 13:02:59 +02:00
Shoghi Cervantes
747f7685e7
Fix formatting issues due to bad IDE settings
2014-12-07 16:30:04 +01:00
Shoghi Cervantes
7506f01302
Improved Item property handling
2014-12-07 15:51:00 +01:00
Shoghi Cervantes
78f8d0280d
Removed unused imports
2014-10-29 01:14:09 +01:00
Shoghi Cervantes
34ae760def
New way to spawn entities/tiles using a global register table, allow overriding default entity/tile classes via classes
2014-10-28 13:09:27 +01:00
Shoghi Cervantes
883f93cc8c
Improved item drop spawning
2014-10-13 22:45:04 +02:00
Shoghi Cervantes
5db45222c6
Deprecated Level->getChunkAt() in favor of Level->getChunk()
2014-09-26 10:31:32 +02:00
Shoghi Cervantes
db7222976e
Code cleanup
2014-08-21 17:26:41 +02:00
Shoghi Cervantes
5eee4f9771
Fixed AddEntityPacket, added base Arrow
2014-08-16 16:37:57 +02:00
Shoghi Cervantes
52d28795fa
Added Villager spawn egg
2014-08-16 14:25:58 +02:00
Shoghi Cervantes
c675605014
Added item activation, zombie spawn egg
2014-08-16 14:01:07 +02:00
Shoghi Cervantes
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00