Skip to content

Commit

Permalink
feat: Adaptation 1.20.0 (LiteLDev#1286)
Browse files Browse the repository at this point in the history
* feat: update header

* Update PacketAPI.cpp

* Update ModifyInfomation.cpp

* Update ModifyInfomation.cpp

* Update ModifyInfomation.cpp

* feat: update static vanilla blocks

* Update AvailableCommandsPacket.hpp

* fix: PlayerDestroyEvent

* fix help crash

---------

Co-authored-by: OEOTYAN <[email protected]>
  • Loading branch information
dreamguxiang and OEOTYAN committed Jun 10, 2023
1 parent 5630aa8 commit 0318dee
Show file tree
Hide file tree
Showing 1,339 changed files with 43,163 additions and 39,388 deletions.
6 changes: 3 additions & 3 deletions LiteLoader/include/liteloader/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#define LITELOADER_VERSION_RELEASE 2

#define LITELOADER_VERSION_MAJOR 2
#define LITELOADER_VERSION_MINOR 13
#define LITELOADER_VERSION_REVISION 1
#define LITELOADER_VERSION_MINOR 14
#define LITELOADER_VERSION_REVISION 0
#define LITELOADER_VERSION_COMMIT_SHA UNKNOWN
#define LITELOADER_VERSION_STATUS LITELOADER_VERSION_DEV
#define LITELOADER_VERSION_STATUS_VERSION 0

#define TARGET_BDS_PROTOCOL_VERSION 582
#define TARGET_BDS_PROTOCOL_VERSION 589

#define LITELOADER_VERSION ll::getLoaderVersion()

Expand Down
5 changes: 3 additions & 2 deletions LiteLoader/include/llapi/SendPacketAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ class NetworkPacket : public Packet {
virtual bool isValid() const {
throw("TODO");
}
virtual enum StreamReadResult _read(class ReadOnlyBinaryStream&) override {

virtual ExtendedStreamReadResult _read(class ReadOnlyBinaryStream&) override {
throw("TODO in MyPkt::_read()");
return (enum StreamReadResult)0;
return ExtendedStreamReadResult{(enum StreamReadResult)0, ""};
}
};
8 changes: 4 additions & 4 deletions LiteLoader/include/llapi/mc/Ability.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ class Ability {
#endif

public:
/**
* @symbol ??0Ability\@\@QEAA\@_NW4Options\@0\@\@Z
*/
MCAPI Ability(bool, enum class Ability::Options);
/**
* @symbol ??0Ability\@\@QEAA\@XZ
*/
MCAPI Ability();
/**
* @symbol ??0Ability\@\@QEAA\@_NW4Options\@0\@\@Z
*/
MCAPI Ability(bool, enum class Ability::Options);
/**
* @symbol ?getBool\@Ability\@\@QEBA_NXZ
*/
Expand Down
139 changes: 67 additions & 72 deletions LiteLoader/include/llapi/mc/AbstractArrow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,162 +47,157 @@ class AbstractArrow : public PredictableProjectile {
*/
virtual void __unk_vfn_16();
/**
* @vftbl 41
* @symbol __unk_vfn_41
* @vftbl 40
* @symbol __unk_vfn_40
*/
virtual void __unk_vfn_41();
virtual void __unk_vfn_40();
/**
* @vftbl 47
* @vftbl 46
* @symbol ?lerpMotion\@AbstractArrow\@\@UEAAXAEBVVec3\@\@\@Z
*/
virtual void lerpMotion(class Vec3 const &);
/**
* @vftbl 62
* @symbol __unk_vfn_62
* @vftbl 61
* @symbol __unk_vfn_61
*/
virtual void __unk_vfn_62();
virtual void __unk_vfn_61();
/**
* @vftbl 69
* @symbol __unk_vfn_69
* @vftbl 68
* @symbol __unk_vfn_68
*/
virtual void __unk_vfn_69();
virtual void __unk_vfn_68();
/**
* @vftbl 79
* @vftbl 77
* @symbol ?getShadowHeightOffs\@AbstractArrow\@\@UEAAMXZ
*/
virtual float getShadowHeightOffs();
/**
* @vftbl 80
* @vftbl 78
* @symbol ?getShadowRadius\@AbstractArrow\@\@UEBAMXZ
*/
virtual float getShadowRadius() const;
/**
* @vftbl 82
* @symbol __unk_vfn_82
*/
virtual void __unk_vfn_82();
/**
* @vftbl 85
* @symbol __unk_vfn_85
* @vftbl 80
* @symbol __unk_vfn_80
*/
virtual void __unk_vfn_85();
virtual void __unk_vfn_80();
/**
* @vftbl 88
* @symbol __unk_vfn_88
* @vftbl 86
* @symbol __unk_vfn_86
*/
virtual void __unk_vfn_88();
virtual void __unk_vfn_86();
/**
* @vftbl 89
* @vftbl 87
* @symbol ?playerTouch\@AbstractArrow\@\@UEAAXAEAVPlayer\@\@\@Z
*/
virtual void playerTouch(class Player &);
/**
* @vftbl 96
* @symbol __unk_vfn_96
* @vftbl 94
* @symbol __unk_vfn_94
*/
virtual void __unk_vfn_96();
virtual void __unk_vfn_94();
/**
* @vftbl 99
* @symbol __unk_vfn_99
* @vftbl 97
* @symbol __unk_vfn_97
*/
virtual void __unk_vfn_99();
virtual void __unk_vfn_97();
/**
* @vftbl 104
* @symbol __unk_vfn_104
*/
virtual void __unk_vfn_104();
/**
* @vftbl 106
* @symbol __unk_vfn_106
*/
virtual void __unk_vfn_106();
/**
* @vftbl 108
* @symbol __unk_vfn_108
* @vftbl 107
* @symbol __unk_vfn_107
*/
virtual void __unk_vfn_108();
virtual void __unk_vfn_107();
/**
* @vftbl 109
* @symbol __unk_vfn_109
*/
virtual void __unk_vfn_109();
/**
* @vftbl 111
* @symbol __unk_vfn_111
*/
virtual void __unk_vfn_111();
/**
* @vftbl 169
* @vftbl 167
* @symbol ?getSourceUniqueID\@AbstractArrow\@\@MEBA?AUActorUniqueID\@\@XZ
*/
virtual struct ActorUniqueID getSourceUniqueID() const;
/**
* @vftbl 177
* @vftbl 175
* @symbol ?canChangeDimensionsUsingPortal\@AbstractArrow\@\@UEBA_NXZ
*/
virtual bool canChangeDimensionsUsingPortal() const;
/**
* @vftbl 178
* @symbol __unk_vfn_178
* @vftbl 176
* @symbol __unk_vfn_176
*/
virtual void __unk_vfn_178();
virtual void __unk_vfn_176();
/**
* @vftbl 192
* @symbol __unk_vfn_192
* @vftbl 190
* @symbol __unk_vfn_190
*/
virtual void __unk_vfn_192();
virtual void __unk_vfn_190();
/**
* @vftbl 217
* @symbol __unk_vfn_217
* @vftbl 215
* @symbol __unk_vfn_215
*/
virtual void __unk_vfn_217();
virtual void __unk_vfn_215();
/**
* @vftbl 218
* @symbol __unk_vfn_218
* @vftbl 216
* @symbol __unk_vfn_216
*/
virtual void __unk_vfn_218();
virtual void __unk_vfn_216();
/**
* @vftbl 240
* @symbol __unk_vfn_240
* @vftbl 232
* @symbol __unk_vfn_232
*/
virtual void __unk_vfn_240();
virtual void __unk_vfn_232();
/**
* @vftbl 243
* @symbol __unk_vfn_243
* @vftbl 235
* @symbol __unk_vfn_235
*/
virtual void __unk_vfn_243();
virtual void __unk_vfn_235();
/**
* @vftbl 260
* @symbol __unk_vfn_260
* @vftbl 252
* @symbol __unk_vfn_252
*/
virtual void __unk_vfn_260();
virtual void __unk_vfn_252();
/**
* @vftbl 264
* @vftbl 256
* @symbol ?readAdditionalSaveData\@AbstractArrow\@\@MEAAXAEBVCompoundTag\@\@AEAVDataLoadHelper\@\@\@Z
*/
virtual void readAdditionalSaveData(class CompoundTag const &, class DataLoadHelper &);
/**
* @vftbl 265
* @vftbl 257
* @symbol ?addAdditionalSaveData\@AbstractArrow\@\@MEBAXAEAVCompoundTag\@\@\@Z
*/
virtual void addAdditionalSaveData(class CompoundTag &) const;
/**
* @vftbl 268
* @symbol __unk_vfn_268
* @vftbl 260
* @symbol __unk_vfn_260
*/
virtual void __unk_vfn_268();
virtual void __unk_vfn_260();
/**
* @vftbl 275
* @symbol __unk_vfn_275
* @vftbl 267
* @symbol __unk_vfn_267
*/
virtual void __unk_vfn_275();
virtual void __unk_vfn_267();
/**
* @vftbl 276
* @vftbl 268
* @symbol ?shoot\@AbstractArrow\@\@UEAAXAEBVVec3\@\@MM0\@Z
*/
virtual void shoot(class Vec3 const &, float, float, class Vec3 const &);
/**
* @vftbl 277
* @vftbl 269
* @symbol ?_playPickupSound\@AbstractArrow\@\@MEAAXXZ
*/
virtual void _playPickupSound();
/**
* @vftbl 278
* @vftbl 270
* @symbol ?_getPickupItem\@ThrownTrident\@\@MEBA?AVItemStack\@\@XZ
*/
virtual class ItemStack _getPickupItem() const = 0;
Expand Down
Loading

0 comments on commit 0318dee

Please sign in to comment.