summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-07(Ender) Chests are obstructed by opaque blocks.Nounours Heureux2-15/+13
2015-06-17Fixes #2245Tiger Wang1-1/+1
Whoops :/
2015-06-15Fixed overridetycho1-1/+1
This was causing a compile error in clang 3.6
2015-06-10Reinstate "Chunk queue collapsing"Tiger Wang1-0/+1
This reinstates commit f36acb683594daff5af3971dcbe3c3a171628b78 and reverts commit adfbc42c021e1bcfcb355933c0fd784306ce0e18.
2015-06-07Revert "Chunk queue collapsing"worktycho1-1/+0
2015-06-06ComparatorsTiger Wang2-1/+19
2015-06-05Rewrote ChunkSending queue for significantly improved performancetycho1-0/+1
2015-06-03Fixes multiple furnace issues, including from loading world storageHaoTNN2-14/+37
2015-05-28Fix commentstycho2-6/+9
2015-05-24Made -Weverything an error.tycho3-9/+19
2015-05-23Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch2-2/+2
2015-05-19Make -Werror disabling file onlytycho2-2/+7
Ad fix a load of warnings
2015-05-19Fixes lit furnace issue in #2051haotnn1-0/+1
2015-05-11Improved hoppersTiger Wang2-27/+16
* Fixes #1994
2015-05-09More style checking.Mattes D2-2/+2
Spaces around some operators are checked.
2015-03-21Changed cEntity::m_UniqueID to UInt32.Mattes D3-14/+28
2015-03-20Correct world height validations.Tommy Santerre1-2/+2
Unify the way we test block above the current one (Height - 1 instead of a_RelY + 1). Allow generation of world of flat height = 255
2015-03-19Removed unwanted base classes from Lua API.Mattes D1-0/+2
2015-03-10Moved window code into cpp filesHowaner1-1/+1
2015-01-11Initial convertion of a_Dt to std::chronoTycho13-13/+13
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-12-17NULL -> nullptrTiger Wang1-2/+2
2014-12-13Own classes for all windows.Howaner6-3/+6
2014-12-01MobSpawner fixes.Howaner3-3/+10
2014-11-29Many api fixes, add vanilla names to mob type -> string functions and mob spawner fixes.Howaner3-57/+12
2014-11-27BlockEntities: Removed the extra semicolon.Mattes D16-24/+25
2014-11-18Finished mob spawner implementation.Howaner13-121/+10
2014-10-23En masse NULL -> nullptr replaceTiger Wang16-54/+64
2014-10-21Fixed trailing whitespace.Mattes D2-2/+2
2014-10-20En masse NULL -> nullptr replaceTiger Wang16-44/+44
2014-10-19cLuaState: cBlockEntity descendants are pushed with proper class type.Mattes D16-25/+62
2014-10-18Furnaces now update their block entity typeTiger Wang1-2/+4
Therefore improving cChunk's variable boundary checking.
2014-10-18Simpler code.Alexander Harkness1-3/+2
2014-10-16Nullptr?Alexander Harkness1-2/+2
2014-10-16Fixed a number of stylistic issues.Alexander Harkness1-7/+7
2014-10-12fix std:min call, include algorithm and compare same typeSteven Riehl1-2/+2
2014-10-12refactor an if block to std::minSteven Riehl1-4/+1
2014-10-12convert old style casts to fix warningsSteven Riehl8-105/+74
2014-10-03Improved furnacesTiger Wang2-142/+109
* Fixed progress bar on 1.8 * Fixed bugs * Improved code * Fixes #1068 * Fixes #1070
2014-09-30Removed WSSCompactTiger Wang24-437/+0
2014-09-28Compilation fixTiger Wang1-2/+2
2014-09-27SuggestionsTiger Wang3-9/+8
2014-09-27Fixed compile errors.Howaner2-42/+42
2014-09-26Removed more unessicary includesTycho22-35/+12
2014-09-25Fixed dispender direction bugHowaner1-1/+1
2014-09-23A few compiler warning fixesChris Darnell1-1/+1
2014-09-19Implemented mob spawner.Howaner3-43/+323
2014-09-17Added first test to show the object can be createdTycho1-1/+1
2014-09-17Created MobSpawnerEntity class.Howaner4-1/+165
2014-09-13Implemented Chest MinecartsTiger Wang7-7/+2
2014-09-11Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho2-4/+5
THis wil hopefully allow for unit testing
2014-09-06Added Y-wise asserts to signs.Mattes D1-0/+1
This should help detect #1313's second case.
2014-09-01Fixed style.madmaxoft1-1/+2
2014-08-31Changed null check to assertworktycho1-5/+3
Changed the null check to clarify that the function should not be called before the entity has been attached to a world.
2014-08-31Rewrited furnace.txt loading.Howaner1-1/+1
2014-08-30Fixed style.madmaxoft1-2/+3
2014-08-29Improved command block securityTiger Wang1-6/+19
2014-08-10Fixed potential null dereferenceTycho1-5/+5
Fixes CID 70466
2014-08-06Fixed style issuesTycho2-2/+5
2014-08-06Fixed multiple inhertance being output by toluaTycho2-6/+10
2014-08-05Removed dependecy of redstone simulator on NoteBlockTycho2-1/+13
2014-08-05Refactored Redstone simulator not to depend on TNTEntity or DropSpenserENtity DirectlyTycho2-3/+13
2014-08-02Fixed a bug who can used from hacked clients.Howaner1-0/+2
2014-07-31Use "default:" in switch.Howaner1-3/+6
2014-07-31Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner2-51/+15
2014-07-31Updated documentation.Howaner1-3/+3
2014-07-31Renamed functions and added beacon json saving.Howaner2-46/+44
2014-07-30Added window update.Howaner1-0/+23
2014-07-30Added beacon load/save.Howaner1-0/+3
2014-07-30Changed return type from GetPrimaryPotion() and GetSecondaryPotion()Howaner1-2/+2
2014-07-30Exported the beacon.Howaner2-17/+27
2014-07-30Added beacon.Howaner3-32/+337
2014-07-24Removed redundant semicolons and re-added warningarchshift3-4/+4
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft8-12/+12
2014-07-19Code style: Fixed braces on separate lines.madmaxoft3-3/+6
2014-07-19Subdirs: Only add_library if not using MSVCarchshift1-1/+3
2014-07-19BlockEntities/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+35
2014-07-18Fixed spaces before commas.madmaxoft1-2/+2
2014-07-17Basic style fixes.madmaxoft10-11/+11
2014-07-17Normalized comments.madmaxoft4-10/+10
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-07-15Fixed a DropSpenser AddFace bugTiger Wang1-1/+1
2014-07-15Pass cItem by reference.madmaxoft1-1/+1
Fixes CID 66445.
2014-07-13Fixed Issue with Comparing agast the wrong chest, potentially causing crashes.worktycho1-7/+7
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner1-1/+1
2014-07-12cHopperEntity: Simplified chest conditions.madmaxoft1-10/+4
2014-07-12cChestEntity: Renamed a member to avoid confusion.madmaxoft2-8/+9
2014-07-12Fixed alignment.madmaxoft1-2/+3
2014-07-12Suggestions and bug fixTiger Wang2-10/+18
* Fixed hoppers pushing/pulling to/from (trapped)chests that do not form a double-chest with the chest type directly connected to said hopper; thank you, @madmaxoft
2014-07-11SuggestionsTiger Wang1-4/+4
2014-07-08Made things consistentTiger Wang1-4/+5
2014-07-07Implemented trapped chests & othersTiger Wang4-13/+36
+ Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
2014-06-29Properly implemented enderchestsTiger Wang2-93/+44
2014-06-24Fixed crashes in HopperEntity.Mattes D1-19/+58
Some of the coords were off and some functions were assuming too much. Fixes the crash reported in http://forum.mc-server.org/showthread.php?tid=1497
2014-06-22Chests don't open if obstructedTiger Wang1-0/+13
* Fixes FS383
2014-06-11DispenserEntity code cleanup after PR merge.madmaxoft2-30/+30
2014-06-05- Fixed a lot of alignmentJoannisO1-7/+7
2014-06-04- Removed the code that removed fireworks from a dispenser even thoughtJoannisO1-3/+0
they weren't launched.
2014-06-04- Fixed variable names in a function.JoannisO1-2/+2
2014-06-04- Fixed a lot of astethicsJoannisO2-14/+17
2014-06-03- Fixed an issue where there were 2 "DispChunk"-s in the same function.JoannisO1-16/+5
Resused the initial one.
2014-06-03- Fixed a bug where I didn't return anything in the GetShootVectorJoannisO1-0/+2
function. This was however passed as "working" by GCC.
2014-06-03- Fixed a bug where I used the FireCharge ITEM instead of the ProjectileJoannisO1-1/+1
ENUM
2014-06-03- Cleaned up the code massivelyJoannisO2-90/+31
- Stopped using cChunk in the GetShootVector class. Parameter is now the Metadata of the block - Stopped using cChunk in the SpawnProjectileFromDispenser method now using coordinates and finding the chunk by itself. - Removed the matrix calculations from GetShootVector.
2014-06-03- Added doxy comments and exported to luaJoannis2-22/+64
- Manipulation of the ShootVector is not to be done by the function that wants to spawn a projectile.
2014-05-31- Changed the name of the ProjectileLookVector method.JoannisO2-3/+3
Note: I still think the new name is unclear. Any other suggestions are welcome.
2014-05-29- Prefixed all args with "a_"JoannisO2-6/+10
- Added braces around the cases.
2014-05-28Code improvementsHowaner1-5/+2
2014-05-28Fix skull bugs.Howaner1-0/+5
2014-05-28- Removed breaks. I thought it wouldn't compile without them but theJoannisO1-2/+0
issue was appearantly solved with an earlier commit.
2014-05-28- Fixed an issue where dispensers would only shoot arrows (appearantlyJoannisO1-33/+24
some commits didn't come through) - Cleaned up the code according to suggestions.
2014-05-28- Implemented vertical dispensing for projectiles.Joannis2-16/+40
- Fixed some terrible commit issues on my side.
2014-05-27- Fixed the ampersands and asterisks to fit the format.Joannis2-8/+8
- Fixed the method "SpawnProjectileFromDispenser" to use CamelCasing.
2014-05-26- Added support for more types of projectiles in the DispenserJoannisO2-38/+51
- Improved the method of spawning projectiles in the world - Added another method for spawning the projectiles
2014-05-26Added Arrow- and FireCharge-Dispensing to DispenserEntity.JoannisO2-27/+95
2014-04-27Added static const, initialized fields.archshift2-1/+4
2014-04-25Cmake generated projects for IDEs include headers in project files.archshift1-0/+1
2014-04-19Fixed Flint and Steel, reverted Minecart change, renamed a parameter namejfhumann1-5/+5
2014-04-19Fixed formatting, made function static.madmaxoft2-13/+18
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann3-8/+13
2014-04-12Some tweaksSTRWarrior1-5/+17
GetPyramidLevel returns 0 when no layers were found, 1 for one layer etc. Auto adjust the minY and/or maxY to 0 if the beacon is low.
2014-04-12Removed debug message.STRWarrior1-1/+0
2014-04-12Simplefied GetPyramidLevelSTRWarrior1-10/+3
2014-04-12Implemented the skeleton code for the beacon.STRWarrior3-0/+153
There is no handling for the GUI. It can now check how big the pyramid is under the beacon.
2014-04-03Fixed a few MSVC type warnings.Mattes D1-1/+1
2014-03-16Fixed double to float conversions.madmaxoft1-1/+1
2014-03-14Add fireball interactHowaner1-0/+6
2014-03-08Change TNT Fuse to ticksHowaner1-1/+1
2014-03-07Add Flower PotsHowaner3-0/+210
2014-02-28Documented the changes in cJukeboxEntity.madmaxoft1-2/+3
2014-02-24Fixed compilation in MSVC (forward class definitions).madmaxoft2-0/+2
2014-02-24BlockEntities is warnings freeTycho6-3/+11
2014-02-23Rename SkullEntity to MobHeadEntityHowaner5-189/+189
2014-02-23Add break to Protocol17x.cpp and use new comment delimiterHowaner1-7/+7
2014-02-23Add Heads completelyHowaner3-5/+3
2014-02-23Add Skulls/HeadsHowaner3-0/+191
2014-02-21Better Jukebox APIHowaner2-16/+48
2014-02-19Rename SkullEntity to MobHeadEntityHowaner5-189/+189
2014-02-19Add break to Protocol17x.cpp and use new comment delimiterHowaner1-7/+7
2014-02-18Add Heads completelyHowaner3-5/+3
2014-02-17Add Skulls/HeadsHowaner3-0/+191
2014-02-15Fixed typographical errorTiger Wang1-2/+1
2014-02-15Removed debug messages againTiger Wang1-6/+0
2014-02-13Added proper debug messagesTiger Wang1-3/+8
2014-02-13Fancy stuff with constant referencesTiger Wang1-2/+2
2014-02-12Added more missing GetClassStatic()sTiger Wang2-0/+4
2014-02-12Removed some unneeded BroadcastWholeWindow()sTiger Wang4-23/+2
2014-02-12Changed inheritance a bitTiger Wang7-33/+47
* cBlockEntityWithItems now inherits from cBlockEntityWindowOwner
2014-02-11Fixed #190Tiger Wang1-2/+67
+ Hoppers now collect pickups above them
2014-02-11Fixed #612Tiger Wang2-0/+16
* Chests send contents updates to client
2014-01-23Minor style improvements for the merged PR.Mattes D1-4/+4
2014-01-23Command block fixes 2andrew1-6/+20
2014-01-19Removed unneeded paramtersTiger Wang1-1/+1
2014-01-19Changed SendBlockEntity format slightlyTiger Wang1-24/+2
* Writing NBT is now in Protocol, not BlockEntity files * Fixed a last output bug
2014-01-19Improved command blocksTiger Wang1-5/+37
* Their command and previous output are displayed on the client * They have a BlockHandler implementation, so you can't place blocks on them anymore + As a side effect, implemented UpdateBlockEntity
2014-01-18Fixed compiler error.STRWarrior1-3/+3
2014-01-18Command block fixesandrew2-38/+5
2014-01-18Parse the MC|AdvCdm plugin messageandrew1-0/+2
2014-01-18Command blocks: Execute()andrew1-5/+27
2014-01-18Command block (de)serializationandrew2-3/+42
2014-01-18Basic command block implementationandrew3-11/+271
2014-01-16Removed obsoleted functionsTiger Wang2-4/+4
2014-01-06Fixed a few MSVC warnings.madmaxoft2-5/+4
2013-12-30Fixed compilation in VC2008.madmaxoft1-2/+1
Also removed an unused inline header file (yuck).
2013-12-22merged in warnings changesTycho Bickerstaff5-4/+9
2013-12-22converted commneted paramater names to the unused macroTycho Bickerstaff2-2/+8
2013-12-21Chunk is now warnings cleanTycho Bickerstaff3-3/+3
2013-12-21fixed hidden bug with furnaces ignoring time burntTycho Bickerstaff1-1/+1
this patch fixes an issue with furnaces where they would ignore the time burnt in setBurnTimes this did not cause a problem as this function was only called with the same value as the one it was using for time burnt
2013-12-21ChunkSender is now warnings cleanTycho Bickerstaff1-1/+1
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2-4/+4
2013-12-19added blocks and blockentitiesTycho Bickerstaff1-0/+11
2013-12-16Fixed multiple inheritance in ToLua++.madmaxoft5-20/+20
This fixes #422.
2013-12-08Moved bindings-related to a Bindings subfolder.madmaxoft1-1/+1
Ref.: #407
2013-12-07Added basic ender chestsTiger Wang3-10/+201
Note that they just mirror chests now, so no per player inventory.
2013-12-06Fixed pickups spawning for BlockEntitiesTiger Wang1-1/+1
2013-11-28Moved json includes to where they are really needed.madmaxoft1-0/+1
2013-11-27Fixed VC2008 compilation, normalized include paths.madmaxoft5-5/+5
2013-11-27Fixed the remaining derpsAlexander Harkness5-5/+5
2013-11-25Further attempts to fix compileTiger Wang5-5/+5
2013-11-24Attempt to fix compilationTiger Wang5-5/+5
2013-11-24Moved source to srcAlexander Harkness21-0/+3033