添加无线收发器能耗配置,能耗默认改为100
This commit is contained in:
parent
24d8a465a4
commit
b1c6e02289
|
|
@ -63,6 +63,15 @@ public final class ModConfig {
|
|||
@Configurable.Synchronized
|
||||
public boolean wirelessCrossDimEnable = true;
|
||||
|
||||
@Configurable
|
||||
@Configurable.Comment(value = {
|
||||
"无线收发器待机能耗",
|
||||
"无线收发器的基础待机能耗(AE/t),同时作用于普通与标签无线收发器"
|
||||
})
|
||||
@Configurable.Synchronized
|
||||
@Configurable.DecimalRange(min = 0, max = Double.MAX_VALUE)
|
||||
public double wirelessTransceiverIdlePower = 100.0;
|
||||
|
||||
@Configurable
|
||||
@Configurable.Comment(value = {
|
||||
"智能倍增时是否对样板供应器轮询分配",
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import appeng.blockentity.AEBaseBlockEntity;
|
|||
import com.extendedae_plus.ae.wireless.IWirelessEndpoint;
|
||||
import com.extendedae_plus.ae.wireless.LabelLink;
|
||||
import com.extendedae_plus.ae.wireless.LabelNetworkRegistry;
|
||||
import com.extendedae_plus.config.ModConfig;
|
||||
import com.extendedae_plus.init.ModBlockEntities;
|
||||
import com.extendedae_plus.init.ModItems;
|
||||
import com.extendedae_plus.menu.LabeledWirelessTransceiverMenu;
|
||||
|
|
@ -51,7 +52,7 @@ public class LabeledWirelessTransceiverBlockEntity extends AEBaseBlockEntity imp
|
|||
super(ModBlockEntities.LABELED_WIRELESS_TRANSCEIVER_BE.get(), pos, state);
|
||||
this.managedNode = GridHelper.createManagedNode(this, NodeListener.INSTANCE)
|
||||
.setFlags(GridFlags.DENSE_CAPACITY);
|
||||
this.managedNode.setIdlePowerUsage(1.0);
|
||||
this.managedNode.setIdlePowerUsage(ModConfig.INSTANCE.wirelessTransceiverIdlePower);
|
||||
this.managedNode.setTagName("labeled_wireless_node");
|
||||
this.managedNode.setInWorldNode(true);
|
||||
this.managedNode.setExposedOnSides(EnumSet.allOf(Direction.class));
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import appeng.blockentity.AEBaseBlockEntity;
|
|||
import com.extendedae_plus.ae.wireless.IWirelessEndpoint;
|
||||
import com.extendedae_plus.ae.wireless.WirelessMasterLink;
|
||||
import com.extendedae_plus.ae.wireless.WirelessSlaveLink;
|
||||
import com.extendedae_plus.config.ModConfig;
|
||||
import com.extendedae_plus.init.ModBlockEntities;
|
||||
import com.extendedae_plus.init.ModItems;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
|
@ -53,7 +54,7 @@ public class WirelessTransceiverBlockEntity extends AEBaseBlockEntity implements
|
|||
// 创建 AE2 管理节点
|
||||
this.managedNode = GridHelper.createManagedNode(this, NodeListener.INSTANCE)
|
||||
.setFlags(GridFlags.DENSE_CAPACITY);
|
||||
this.managedNode.setIdlePowerUsage(1.0); // 可按需调整基础待机功耗
|
||||
this.managedNode.setIdlePowerUsage(ModConfig.INSTANCE.wirelessTransceiverIdlePower); // 可配置基础待机功耗
|
||||
this.managedNode.setTagName("wireless_node");
|
||||
this.managedNode.setInWorldNode(true);
|
||||
this.managedNode.setExposedOnSides(EnumSet.allOf(Direction.class));
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@
|
|||
"config.extendedae_plus.option.entityTickerMultipliers": "Entity Ticker Extra Consumption Multipliers",
|
||||
"config.extendedae_plus.option.craftingPauseThreshold": "AE synthesis calculation pause check threshold",
|
||||
"config.extendedae_plus.option.prioritizeDiskEnergy": "Prioritize FE energy from disk (requires Applied Flux)",
|
||||
"config.extendedae_plus.option.wirelessTransceiverIdlePower": "Wireless Transceiver Idle Power",
|
||||
|
||||
"item.extendedae_plus.channel_card": "Channel Card",
|
||||
"item.extendedae_plus.channel_card.channel": "Frequency: %s",
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@
|
|||
"config.extendedae_plus.option.entityTickerMultipliers": "实体加速器额外消耗倍率",
|
||||
"config.extendedae_plus.option.prioritizeDiskEnergy": "优先从磁盘提取FE能量(仅当Applied Flux模组存在时生效)",
|
||||
"config.extendedae_plus.option.craftingPauseThreshold": "AE合成计算暂停检查阈值",
|
||||
"config.extendedae_plus.option.wirelessTransceiverIdlePower": "无线收发器能耗",
|
||||
|
||||
"item.extendedae_plus.channel_card": "频道卡",
|
||||
"item.extendedae_plus.channel_card.channel": "频率:%s",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user