Free camera API 图标

Free camera API

作者:rebot | 分类:模组

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

Minecraft 版本: 26.1.2

平台: neoforge

标签: library utility

资源介绍

Free camera API V5

Logo

Free camera mode

Since version 3.2.0, the mod has included a built-in free camera feature, as many players were attracted by the mod's name only to discover that such functionality was not actually present.

By default, this feature is not bound to a key mapping and requires manual setup. Block collision detection is enabled by default and can be disabled via the configuration interface. If the mod is not installed on the server, it will be force-enabled; otherwise, it will follow the server's settings.

What are the advantages?

  • Decouples from camera internals, reducing complexity.
  • Simple and flexible usage.
  • Supports loading chunks beyond the player's view range (with expansion).​

    How to Register and Use the Plugin

  1. Create the plugin class

     @Plugin(value = "example", priority = ModifierPriority.LOWEST)
     public class ExamplePlugin implements CameraPlugin {
         // ...
     }

    value: Plugin unique identifier (string)
    priority: Priority setting (ModifierPriority.HIGH/LOWEST etc.)

  2. Initialization

     public ExamplePlugin(CameraModifier modifier) {
         modifier.disable()
                 .enablePos()
                 .enableFov()
                 .enableGlobalMode();
     }
  3. Update camera data every frame

     modifier
                 .enablePos() // Enable position modification
                 .enableRotation() // Enable rotation modification
                 .enableFov() // Enable FOV modification
                 .setPos(1, 2, 3) // Set camera position to (1,2,3), default is local coordinates centered on player
                 .addPos(1, 2, 3)
                 .setRotationYXZ(90f, 15f, 25f) // Set camera rotation to (90f, 15f, 25f)
                 .move(0, 0, -5) // Move camera based on current rotation
                 .enableGlobalMode() // Enable global mode, all coordinates and rotations will be modified according to world coordinates
                 .enableChunkLoader() // Enable chunk loader, load chunks around the camera. An additional Free Camera API Addition mod needs to be installed to enable this feature, otherwise it will have no effect
                 .enableObstacle() // Enable collision detection

    Gallery

    Dolly zoom
    Roll

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

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Hide Armor

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

查看详情
Mechanical Tech

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

查看详情
Rispwind's Additional Paintings

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

查看详情
Yellow-Mc

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

查看详情