summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings_World.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-20Valid Height is now checked by vector.x12xx12x1-10/+10
2021-06-28Re-export SetBlockMetaTiger Wang1-2/+61
* Fixes #5195
2021-06-07Replace invalid references in deprecation messages (#5235)Mat1-2/+2
2021-04-12Fix sending incorrect date values on world changeTiger Wang1-5/+99
Yak shave: make more things use cTickTime. Fix a couple of incorrect modulo-on-millisecond-value by making them use WorldTickAge.
2021-03-28Unify DoWithBlockEntity (#5168)Tiger Wang1-25/+266
+ DoWith calls now broadcast the block entity and mark the chunk dirty + Add block entity change queue to synchronise BE updates with block updates * Fixed a few incorrect assertions about BE type - Remove manual overloads
2021-03-15Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang1-30/+423
* Fixes #5144
2020-08-01Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D1-2/+2
2020-04-14Bindings: Allow coercion between Vector3 subtypes. (#4646)Mattes D1-19/+7
In manually bound functions, allows one to use any Vector3<T> value, as well as a {x, y, z} table, in Lua as any Vector3<T> parameter. Has example in Debuggers' /vector command. Unfortunately doesn't work in auto-bindings.
2020-03-27 Lock hopper when powered by redstone (#4347)Bond-0091-0/+1
* Lock hopper when powered by redstone * Add to manual bindings * Add hopper API documentation Co-authored-by: Mat <mail@mathias.is>
2019-09-06Separated chunk generator from world / plugin interfaces.Mattes D1-2/+2
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2019-08-11Added null check for position (#4366)Lukas Pioch1-0/+5
2019-07-28Check for nil in cWorld:SpawnSplitExperienceOrbs binding (#4354)Mark Asp1-1/+6
Adds explicit nil check for 'position' parameter to prevent crashes if invalid. Fixes #4352
2018-08-02Experience orb (#4259)changyong guo1-0/+80
* Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
2018-07-27cWorld: Manually bind deprecated broadcast functions (#4265)peterbell101-53/+266
Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-1/+0
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-24Broadcast refactor (#4264)peterbell101-2/+1
* Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
2018-05-02Prefer static_cast to reinterpret_cast (#4223)peterbell101-1/+1
* Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
2017-09-19Removed UTF-8 BOM (#4033)Lukas Pioch1-1/+1
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell101-3/+3
2017-09-02Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot1-3/+3
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
2017-09-01Replace ItemCallbacks with lambdas (#3948)peterbell101-3/+3
2017-08-25Add cUUID class (#3871)peterbell101-1/+49
2017-07-12Remove double delete of PrepareChunk lua callback (#3844)peterbell101-29/+16
2017-07-07Added bed entity (#3823)Lukas Pioch1-0/+1
* Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
2016-08-21cLuaState: Added template to push multiple values in a single call. (#3331)Mattes D1-10/+3
2016-08-18Fix cWorld:QueueTask() Lua's bindingElNounch1-2/+1
Manual binding expect three parameters : self, a number, a function And then read self and a function... Removing the extra check for the broken second argument
2016-08-14Fixed cWorld:ChunkStay bindings. (#3319)Mattes D1-14/+15
Introduced new cLuaState::cOptionalCallback for representing optional callbacks (nil from Lua side). Introduced new cLuaState::cStackTable class for easy access to Lua table's elements. Fixes #3305.
2016-06-27Converted cLuaState::cCallbackPtr into a UniquePtr.Mattes D1-2/+2
2016-06-27LuaState: Implemented proper locking for cCallback.Mattes D1-1/+3
2016-06-27Changed world tasks to use cLuaState::cCallback.Mattes D1-67/+38
2016-03-21Revert "Lua callback"Mattes D1-38/+67
2016-03-17Changed world tasks to use cLuaState::cCallback.Mattes D1-67/+38
2016-02-05Bulk clearing of whitespaceLogicParrot1-11/+11
2016-01-02Fix typo (ammount)Arnaud Meuret1-3/+3
2015-12-18Revised the explosion-related Lua API and docs.Mattes D1-34/+128
Fixes #2746.
2015-11-03Implemented brewingLukas Pioch1-0/+2
2015-10-04Fixed a race condition between chunk loader and generator.Mattes D1-2/+2
When using ChunkWorx to generate multiple chunks, the server would sometimes fail an assert because it would generate a chunk even when it was successfully loaded. This was caused by chunks queued in cWorld's m_SetChunkDataQueue and thus being marked as "InQueue" although they were already loaded. Solved by adding a new parameter to chunk coord callbacks specifying whether the operation succeeded or failed, and using that instead of the chunk presence flag to decide whether to generate or not.
2015-09-25Prepared ScheduleTask for threading refactorTiger Wang1-44/+11
* Llama-ified and condensed Schedule/QueueTask - Removed hackery done with piston animations
2015-09-24fixed casttycho1-1/+1
2015-09-24Add new "ForEach" function: ForEachLoadedChunk.tycho1-0/+54
2015-08-18Some warning fixesJulian Laubstein1-6/+16
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-4/+4
2015-06-24Buttons no longer click on when already on. Buttons now play sound when clicking off.Hax521-1/+1
2015-05-30Made cLightingThread own its callbackstycho1-2/+1
2015-05-23TryGetHeight returns a boolAlexander Harkness1-1/+1
should fix #2099
2015-05-19Added LuaState support for all integral typestycho1-1/+1
All so added error handling for out of range values
2015-05-13Moved cWorld manual bindings out into a separate file.Mattes D1-0/+588