介绍
Mate API
A better Entity and Player API for Minecraft Fabric 1.21.1.
Mate API provides simple utilities, events, and builders for working with entities and players. It is designed to make mod development easier by reducing boilerplate code and providing a clean, developer-friendly API.
Features
Entity API
- Get nearest entities
- Find entities in a radius
- Entity filtering
- Entity utility methods
- Entity builders
Player API
- Get nearest players
- Action bar utilities
- Chat utilities
- XP utilities
- Inventory utilities
Events
- Player Join Events
- Player Leave Events
- Entity Events
- Easy event registration
Builders
Spawn entities with clean, readable code:
MateEntityBuilder.create(EntityType.ZOMBIE)
.at(world, pos)
.named("Mate Zombie")
.spawn();
Example
PlayerUtils.sendActionBar(
player,
"Hello from Mate API!"
);
Why Mate API?
Mate API was created to simplify common entity and player tasks that many mods need.
Instead of writing the same utility code in every project, developers can use Mate API and focus on building their mods.
常见问题
Mate API 支持哪些 Minecraft 版本?
Mate API 支持 Minecraft Java 版 1.21.1–1.21.11,共 11 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Mate API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
DemoDev 的其他作品
查看全部 →
Fabric.SK
Fabric.SK is a Fabric version of the Skript plugin for Minecraft.
Mod List
Mod List allows you to do /mods and shows the installed mods on your server/client.
Mod List
Mod List allows you to do /mods and shows the installed mods on your server/client.
Reworked TPA
Reworked TPA is a simple and lightweight tpa plugin/mod for Minecraft servers
评论
登录后评论和评分