Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_Jw4W9UOL.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Mate API - 墨喵 Minecraft 资源
Mate API 图标

Mate API

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/mate-api
资源信息

Minecraft 版本: 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: fabric

标签: library

资源介绍

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.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
DFN: Craftable Gravel

价格:0 墨喵币
下载量:0

查看详情
Blexs Earth

价格:0 墨喵币
下载量:0

查看详情
Pika PvP

价格:0 墨喵币
下载量:0

查看详情
Red-Haired Villagers

价格:0 墨喵币
下载量:0

查看详情