从 1.5.4 更新到 1.6.0
超频 Recipe Modifiers
过去可以通过以下方式访问超频 recipe modifiers:
现在应改用:
OverclockingLogic 属性 |
GTRecipeModifiers 属性 |
|---|---|
NON_PREFECT_OVERCLOCK |
OC_NON_PREFECT |
PERFECT_OVERCLOCK |
OC_PERFECT |
PERFECT_OVERCLOCK_SUBTICK |
OC_PERFECT_SUBTICK |
NON_PERFECT_OVERCLOCK_SUBTICK |
OC_NON_PERFECT_SUBTICK |
元素
过去需要将所有属性都传给 .create。
GTCEuStartupEvents.registry('gtceu:element', event => {
event.create('cryolobus', /* protons */ 149, /* neutrons */ 234, /* halfLifeSecons */ -1, /* decayTo */ null, /*symbol*/ 'Cy', /* isIsotope */ false)
}
现在将元素名称传给 .create,并使用 builder 方法指定属性:
GTCEuStartupEvents.registry('gtceu:element', event => {
event.create('cryolobus')
.protons(149)
.neutrons(234)
.symbol('Cy')
}
protons、neutrons 和 isIsotope 是必需的。
单方块机器
过去需要将 tier 列表传给 .create,然后直接在返回结果上调用 builder 方法。
GTCEuStartupEvents.registry('gtceu:machine', event => {
event.create('atomic_reconstructor', 'simple', GTValues.LV, GTValues.MV, GTValues.HV)
.langValue("Atomic Reconstructor")
.recipeType('atomic_reconstruction', true, true)
.workableTieredHullRenderer('gtceu:block/machines/reconstructor')
})
现在需要将 tier 列表传给 .tiers,并在传给 .definition 的函数内部调用其他 builder 方法。
GTCEuStartupEvents.registry('gtceu:machine', event => {
event.create('atomic_reconstructor', 'simple')
.tiers(GTValues.LV, GTValues.MV, GTValues.HV, GTValues.EV, GTValues.IV, GTValues.LuV, GTValues.ZPM, GTValues.UV, GTValues.UHV, GTValues.UEV, GTValues.UIV)
.definition((tier, builder) =>
builder
.langValue(GTValues.VLVH[tier] + " Atomic Reconstructor")
.recipeType('atomic_reconstruction')
.workableTieredHullRenderer('gtceu:block/machines/reconstructor')
)
})
多方块机器
过去需要将从 controller 创建机器的函数传给 .create。
event.create('helical_fusion_reactor', 'multiblock', (holder) => new FusionReactorMachine(holder, GTValues.UHV))
现在需要将该函数传给 .machine。
event.create('helical_fusion_reactor', 'multiblock').machine((holder) => new FusionReactorMachine(holder, GTValues.UHV))
重命名
| 之前 | 之后 |
|---|---|
GCyMBlocks |
GCYMBlocks |