peterbell10
0bacda3269
Implement horse inventory ( #4053 )
...
* Implement horse inventory
* Fix sign conversions
* Add API doc for ItemCategory::IsHorseArmor
* Improve HandleOpenHorseInventory comment and style fixes.
2017-10-21 17:56:09 +01:00
peterbell10
744cdb726d
Fix minecart deceleration ( #4059 )
2017-10-21 17:53:24 +01:00
Lane Kolbly
30c8470a52
Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors ( #3959 )
...
* Made BroadcastSoundEffect take vector parameters.
* Added docs for new vectored methods
* Removed old code
* Fixed lua warnings
* Made old BroadcastSoundEffect not an override.
* m_Block to m_BlockPos, used Vector3d constructor where prettier.
* a_Block to a_BlockPos
* Changed thunderbolt a_Block to a_BlockPos
2017-09-19 15:12:54 +01:00
Lukas Pioch
c5f590d460
Removed UTF-8 BOM ( #4033 )
2017-09-19 10:34:08 +02:00
peterbell10
307e7aaff5
Fix switch warnings ( #4013 )
...
* Fix switch warnings
* Fix a variety of -Wswitch and -Wswitch-enum warnings
* Remove unneeded -Wno-error flags
* Reorganise some eMonsterType switches
* Alpha sort eMonsterType cases in WriteMobMetadata
and in cNBTChunkSerializer::AddMonsterEntity
* List all mob types in protocol 1.12 and NBTChunkSerializer
* cStructGenTrees::GetNumTrees: remove switch default
* cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
2017-09-14 09:48:57 +01:00
Alexander Harkness
a4c07d2f98
Adjust lava damage values ( #4020 )
...
Fixes isue #2925
2017-09-12 09:02:17 +01:00
peterbell10
e225b7f826
Replace ItemCallbacks with lambdas ( #3993 )
2017-09-11 23:20:49 +02:00
Alexander Harkness
4e7325c9e2
Fix crash for players out of the world. Fixes #4006 ( #4007 )
2017-09-10 17:45:18 +01:00
Lane Kolbly
b12f4ef7d5
Made world data paths adjustable, and added API to temporarily disable saving chunks to disk. ( #3912 )
2017-09-07 13:41:16 +01:00
Lane Kolbly
dc294cdc51
Switched player statistic store to save with UUID filenames. ( #4002 )
2017-09-07 11:57:12 +02:00
Alexander Harkness
e33eb529ad
Fire effect now shown for creative and spectator mode players ( #3998 )
...
* Fire effect now shown for creative and spectator mode players
Fixes #3989
* Add documentation for IsFireproof
2017-09-07 09:59:08 +01:00
Lukas Pioch
ed7adef1ca
Updated APIDoc ( #3985 )
2017-09-07 10:33:46 +02:00
Bond-009
104f9e127b
Changed some int parameters to vector parameters ( #3937 )
2017-09-07 10:25:34 +02:00
peterbell10
ef1f371dab
Add cWorld::RemoveEntity and use in cEntity ( #4003 )
...
* Add cWorld::RemoveEntity and use in cEntity
* cEntity: Remove uneeded asserts from Destroy and DoMoveToWorld
2017-09-05 15:11:35 +01:00
LogicParrot
49c443896d
Revert "Replace ItemCallbacks with lambdas ( #3948 )"
...
This reverts commit 496c337cdf
.
2017-09-02 08:50:23 +01:00
Alexander Harkness
700bbdabf5
SetSwimState now takes into account head height
...
This affects m_IsSubmerged and IsSubmerged() for entities of all
types.
Also prevent squids from suffocating in water.
2017-09-01 14:50:02 +01:00
peterbell10
496c337cdf
Replace ItemCallbacks with lambdas ( #3948 )
2017-09-01 13:04:50 +02:00
Tiger Wang
da0778dfaa
Merge pull request #3969 from peterbell10/cuboid
...
cCuboid: restore default copy construct and assign
2017-08-30 15:04:09 +01:00
Lane Kolbly
5d64451f74
Protocol Spawn Position Should Use LastSentPosition ( #3929 )
...
+ Added GetLastSentPos
* Fixed spawn position bug in 1.8.
2017-08-30 15:01:33 +01:00
Lane Kolbly
1f9788a801
Added ShouldSendRespawn parameter to ScheduleMoveToWorld ( #3979 )
2017-08-30 02:35:53 +03:00
peterbell10
3687ef397c
Cleanup Vector3 constructors and Abs
2017-08-28 13:48:07 +01:00
Bond-009
3c8712d871
Gives all entities the default airlevel on creation ( #3942 )
...
* Guardians don't take damage on land
* Squids suffocate on land
2017-08-25 14:44:36 +01:00
peterbell10
f4f2fc7c3d
Add cUUID class ( #3871 )
2017-08-25 13:43:18 +01:00
Lukas Pioch
b55e5f5ad1
Use ref instead of pointer
2017-08-24 14:36:29 +02:00
mathiascode
02775e52c4
Minor changes ( #3909 )
2017-08-24 11:19:40 +02:00
Lane Kolbly
92ac45d27e
Added check to deactivate existing entity effects when new entity effects are added.
2017-08-24 11:19:01 +02:00
Lane Kolbly
af6963f40f
Added check in cEntity::TickBurning for whether the entity is planning to change worlds. ( #3943 )
2017-08-22 15:05:13 +01:00
Bond-009
a262bacc9d
Give arthropods slowness IV when hit with bane of arthropods ( #3932 )
2017-08-21 10:51:26 +02:00
Pablo Beltrán
b18f6637b6
Fully implemented leashes ( #3798 )
2017-08-21 10:46:41 +02:00
Lane Kolbly
f81e6f6b6d
Changed MoveToWorld to ScheduleMoveToWorld in cPlayer::Respawn ( #3922 )
...
* Changed MoveToWorld to ScheduleMoveToWorld
- Removed empty line
2017-08-18 11:40:35 +01:00
Tiger Wang
72d7027861
Merge pull request #3489 from cuberite/EntityOwnership
...
* Changed entity ownership model to use smart pointers
2017-08-18 11:17:56 +01:00
Lane Kolbly
1ec85a2b2c
Add cLuaWindow OnClicked Callback ( #3901 )
2017-08-17 16:27:43 +02:00
Lane Kolbly
4dd2af27e0
Added knockback to arrows, fixed knockback enchantment handling ( #3900 )
...
* Added knockback for arrows, fixed knockback enchantment handling.
2017-08-13 12:40:23 +01:00
Lukas Pioch
743a50014a
Replaced includes with forward declarations
2017-08-13 12:31:10 +01:00
Tiger Wang
4ef47aed62
Changed entity ownership model to use smart pointers
2017-08-07 19:24:16 +01:00
peterbell10
79eb4c3aed
Implement invisibility effect
2017-08-03 15:34:38 +02:00
peterbell10
759618b035
Remove double includes part 2 ( #3890 )
2017-08-03 15:34:19 +02:00
Lukas Pioch
0397535fa7
Removed unused forward declarations ( #3888 )
2017-08-03 15:10:29 +02:00
Lukas Pioch
4691bc5a29
Removed double includes ( #3885 )
2017-08-02 19:57:20 +01:00
peterbell10
0d0323608d
cBlockHandler: take player by ref
2017-08-01 08:21:20 +02:00
peterbell10
8eb5672920
cWorld::SendBlockTo take player by ref
2017-08-01 08:21:20 +02:00
Lane Kolbly
5402b214b3
Check for intersection between placed blocks and entities. ( #3850 )
...
* Check for intersection between placed blocks and entities.
+ Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks.
* Factored block-entity placement checking into another function in cPlayer.
- Removed vector min/max functions
* Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity.
+ Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
2017-07-28 17:59:21 +01:00
Tiger Wang
eb4432bb62
Tentative fix for player-limit race condition ( #3862 )
...
* Attempts to fix #2257
Derived from d233e9843148313c71fbaba96ccff660e47b07b1
* Changed player count type to int
* Clarified certain actions
2017-07-28 17:54:40 +01:00
Lane Kolbly
87af95b67c
Updated armor cover calculation. ( #3858 )
...
* Updated armor damage calculation.
+ Added lua docs, added casts from float to int.
* Changed verbage in docstring and comment.
2017-07-23 10:46:38 +01:00
Lane Kolbly
793acd267f
Changing pickup lifetime and combining semantics, making these adjustable in the lua api. ( #3843 )
2017-07-12 12:13:27 +02:00
Lane Kolbly
647d9082b8
If entity is a player, send relmove packets.
2017-07-12 12:12:56 +02:00
Lane Kolbly
a561886bf3
Implemented draggingitem API.
2017-07-10 05:46:04 +02:00
Lane Kolbly
7c7f85117b
Added armor durability reduction when player is attacked.
2017-07-02 07:45:49 +02:00
Bond-009
cf22bc4e60
Players in creative and spectator aren't affected by cacti ( #3824 )
2017-07-02 07:39:19 +02:00
Mattes D
885d80ccdb
Entity: Replaced a mutexed counter with a std::atomic. ( #3773 )
2017-06-15 16:06:50 +01:00