Extended Chunk
基本信息
com.mitchej123.supernova.api.ExtendedChunk —— mixin 注入到
net.minecraft.world.chunk.Chunk 后的扩展接口。
同族的 3 个扩展接口
| 接口 | 目标类 | 注入者 |
|---|---|---|
| ExtendedChunk(本条目) | net.minecraft.world.chunk.Chunk |
early.engine.MixinChunk |
ExtendedWorld |
net.minecraft.world.World |
early.engine.MixinWorld |
ExtendedSection |
区块 section | — |
ExtendedSection / ExtendedWorld 也被 SupernovaWorld 继承 |
— | — |
注入者
Mixins 的 ENGINE 组:
early.engine.MixinChunk、MixinWorld、MixinWorldServer、
MixinEntityPlayerMP、MixinExtendedBlockStorage(5 个 common)
- 客户端
MixinChunk_FillChunkClient。
作用
让原版 Chunk / World 具备 Supernova 所需的额外光照存储,
而不必 fork 整个类 —— mixin 让原类 implements 这些接口,
从而把方法与字段「加」进 Minecraft 类。
相关接口
SupernovaWorld extends ExtendedWorld(world/SupernovaWorld.java)SupernovaChunk(light/SupernovaChunk.java)—— 光照侧的 chunk 实现
相关条目
源码
src/main/java/com/mitchej123/supernova/api/ExtendedChunk.javasrc/main/java/com/mitchej123/supernova/api/ExtendedWorld.javasrc/main/java/com/mitchej123/supernova/api/ExtendedSection.java