* replace slot with ItemStackSeralizer
* Dismantle current inv logic
* Disassemble even more, items need fixing markd with TODO: Inv
* Player inventory methods implmented
* make some fields private
* remove invalid comment
* Partial screen handler and slot
* Add armorslot
* prepare for crafting
* implement some more crafting traits
* Fix ItemStack
* Fix pickup and remove faulty crafting (getting reworked in inv revamp)
* fix
* fix error
* add readme
* move readme file
* asd
* remove readme
* add uppsercase readme
* Some more work
* merge
* Move from generics to dynamics
* fix
* move to same impl
* Some changes
* add player open logic
* Basic impl of sync and listeners
* Why did mojang complicate it so much
* bruh
* Simplify things with DefaultScreenHandlerBehaviour
* Implement partial slot clicks
* add
* itemhashes are broken
* Start implementing packets
* fix deadlock
* new vanilla update
* Use static item refs and use Arc Mutex on invs
* working normal click
* fix deadlock
* implement sync handler
* small patch
* Implement quick_move
* Implement Swap click type
* pickup, update bug
* start fixing updates
* fix pickup desync
* Make Inventories non mutexes
* Implement some finishing stuff
* close screen on player leave
* fix pick item
* Move to item hashes
* remove some logs
* begin implementing barrels
* Begin implementing barrel
* implement barrels
* fix clippy + typos
* Fix merge conflicts
* Fix lint error
* don't use unwrap when getting equipment slot
* Fix typo and single threaded
* Accidentally removed tokio completley
* Fix crash when opening barrel holding item
* Add support for marking block entities dirty
* Player Equipment changes
* Make ScreenHandlerFactory own inventory instead of passing in optional
* remove log
* replace todo's
* fix clippy
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
now we only calculate the direction if we need and also can calculate up and down which can be used for blocks like Observers or Pistons.
Fixes https://github.com/Pumpkin-MC/Pumpkin/issues/738
* feat(player-data): Support saving and loading player NBT Data
* fix(player_data): ensure player data is save before continuing
* fix(player_data): implement NBTStorage for hunger data
* feat(player-data): allow setting world name in config
* fix(player-data): use correct method to retrieve world_name
* feat(player-data): move PlayerDataStorage to pumpkin-world
* fix(player-data): ci not building
* fix(player-data): ci not building
* feat(player-data): support inventory saving + review fix
* fix(player-data): forgot the format
* some fixes
* fix clippy
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
* Populate biomes
* actually fix multi noise sampler
* actually they are all pass-through
* fix serde error
* prepare things
* implement surface rules
* fix max_y
* fix terrain gen
* make surface rules work
* fix wrong biome coords
* refactor height estimator to its own struct
* implement surface estimation for surface rules
* fix surface gen
* some carve work
* fix conflicts
* more biomes work
* fix biome map
* refactor biome lookups
* add unit tests
* change from_block to from_chunk
* not only lushcaves anymore
* add more unit tests
* add unit test
* fix multi noise
* Update proto_chunk.rs
* fix biome map access
* test badlands impl
* fix badlands
* fix some values
* make it compile
* Fix bug in get_enclosing_parameters (#641)
* add badlands pillar and icebergs
* fix clippy
* fix clippy in test
* Update README.md
---------
Co-authored-by: kralverde <github@email.kralverde.dev>
Co-authored-by: 4lve <72332750+4lve@users.noreply.github.com>
* Major grammar sweep
* Remove extra backtick
* Use more specific terminology for chunk data storage
* Forgor to cargofmt
* Fix typo "thier"
* Fix typo "clousures"
* Try new terminology
* Forgor to cargofmt
* Use "Subchunks" instead of "Heterogeneous" for ChunkBlocks variant
* Fix variable name
* Forgor to change comment
* make entity world RwLock
* Add teleport function
* Mark client as not loaded before change dim
* clippy
* Post-merge issues
* FIx post merge issues
* Make world.remove_player fire event conditionally
* Remove extra StartWaitingChunks packet
* Add world.send_world_info()
* simplify all
* fmt
* Consider using derive macro
* Add new events
* Add events call
* minor fixes
* minor fixes
* fix
* optimize code
* big changes
* fix skill issue
* fix
* Consider not specify patch version
* make logger shared
* i want test one thing
* Add one useful function
* add little amouth of docs
* use config instead
* revert changes
* fmt
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
* Added spawn egg functionality
* Readd changes from before merge
* Added basic attacks on mobs
* Fixed spawn rotation and position
* Updated entities.json
* Fixed entity registry
* Added correct bounding boxes per entity
* Various fixes
* use right data types in entity registry
* fix: clippy
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>