Package net.fabricmc.loom.api.processor
Interface ProcessorContext
- All Known Implementing Classes:
ExecutionProcessorContext,ProcessorContextImpl
public interface ProcessorContext
-
Method Summary
Modifier and TypeMethodDescriptionLazyCloseable<net.fabricmc.tinyremapper.TinyRemapper> createRemapper(MappingsNamespace from, MappingsNamespace to) boolean本平台在工具链中自带数据文件所用的命名空间:fabric/quilt 为intermediary、 forge 为srg、neoforge 为mojang.net.fabricmc.mappingio.tree.MemoryMappingTreebooleanbooleanbooleanisMerged()booleanisSplit()本上下文服务的 jar 是否来自 split(客户端与服务端分开产出)配置.
-
Method Details
-
isSplit
boolean isSplit()本上下文服务的 jar 是否来自 split(客户端与服务端分开产出)配置.split 配置会产出两个 jar,它们与 client only / server only 配置产出的 jar 在
isMerged()、includesClient()、includesServer()上完全一致: 单看一个 jar 无法区分「这是 split 的一半」还是「本来就是单边配置」。 只有本方法能给出这一信息,需要在 split 下改变行为的 processor 必须用它判断。- Returns:
- 本 jar 是否属于 split 配置
-
isMerged
boolean isMerged() -
includesClient
boolean includesClient() -
includesServer
boolean includesServer() -
createRemapper
LazyCloseable<net.fabricmc.tinyremapper.TinyRemapper> createRemapper(MappingsNamespace from, MappingsNamespace to) -
getMappings
net.fabricmc.mappingio.tree.MemoryMappingTree getMappings() -
disableObfuscation
boolean disableObfuscation() -
getProductionNamespace
MappingsNamespace getProductionNamespace() -
getIntermediaryNamespace
MappingsNamespace getIntermediaryNamespace()本平台在工具链中自带数据文件所用的命名空间:fabric/quilt 为intermediary、 forge 为srg、neoforge 为mojang.它与
getProductionNamespace()不是一回事:后者可以被用户配置成official之类的取值,而平台自带的文件(例如 Forge 的accesstransformer.cfg) 始终写在平台自己的命名空间里。- Returns:
- 平台默认命名空间
-