This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
2.15.0-beta.1
Pre-release
Pre-release
Jasonzyt
released this
20 Jul 07:11
·
57 commits
to v2/main
since this release
Added
- Support 1.20.11.01 (by @dreamguxiang @OEOTYAN @Redbeanw44602 @LazuliKao)
Add BlockState APIs (by @OEOTYAN)
Changed
Refactoring BlockInstance (by @OEOTYAN)
WARNING - UNEXPECTED ABI CHANGES |
---|
AFFECTED API
Block::block
BlockInstance::BlockInstance(Block* block, BlockPos pos, int dimid);
BlockInstance::BlockInstance(BlockPos pos, int dimid = 0);
BlockInstance::createBlockInstance(Block* block, BlockPos pos, int dimId);
BlockInstance::getBlock();
BlockInstance::getPosition();
BlockInstance::getBlockSource();
BlockInstance::getDimensionId();
BlockInstance::hasBlockEntity();
BlockInstance::getBlockEntity();
BlockInstance::hasContainer();
BlockInstance::getContainer();
BlockInstance::getBlockDrops();
BlockInstance::isNull();
BlockInstance::operator==(BlockInstance const& bli);
Level::spawnMob(Vec3 pos, int dimId, std::string typeName);
Level::spawnItem(Vec3 pos, int dimId, ItemStack* item);
Level::createExplosion(Vec3 pos, int dimId, Actor* source, float radius, bool createFire, bool canBreak, float maxResistance);
Level::cloneMob(Vec3 pos, int dimId, Actor* ac);
Level::getBlockInstance(BlockPos* pos, int dimId);
Level::getBlockInstance(BlockPos* pos, BlockSource* blockSource);
Level::getBlockEntity(BlockPos* pos, int dimId);
Level::getBlockEntity(BlockPos* pos, BlockSource* blockSource);
Level::setBlock(const BlockPos& pos, int dim, Block* block);
Level::setBlock(const BlockPos& pos, int dim, const string& name, unsigned short tileData);
Level::setBlock(const BlockPos& pos, int dim, CompoundTag* nbt);
Level::hasContainer(Vec3 pos, int dim);
Level::getContainer(Vec3 pos, int dim);
Level::broadcastTitle(const string& text, TitleType Type, int FadeInDuration, int RemainDuration, int FadeOutDuration);
Spawner::spawnMob(Vec3& ,int, std::string );
Spawner::spawnItem(Vec3&, int, ItemStack*);
NOTE TO DEVELOPERS
Due to misuse, the next released version may be different from the ABI of some LLAPI in the current (beta) version.
This may result in error code 127. In order to avoid errors, we recommend that you use the SDK adaptation plugin of the develop branch.