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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Sounds X Create

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

查看详情
cobblommy

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

查看详情
Month Of Swords

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

查看详情
SpaceVulcan

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

查看详情