2013-08-23 16:59:50 +02:00
|
|
|
package com.pahimar.ee3.emc;
|
|
|
|
|
2013-09-30 22:06:37 +02:00
|
|
|
import net.minecraft.block.Block;
|
2013-08-23 16:59:50 +02:00
|
|
|
|
2013-09-30 22:06:37 +02:00
|
|
|
import com.google.common.collect.ImmutableMap;
|
2013-09-10 03:48:34 +02:00
|
|
|
import com.pahimar.ee3.core.util.EnergyStack;
|
2013-08-23 16:59:50 +02:00
|
|
|
import com.pahimar.ee3.item.CustomWrappedStack;
|
|
|
|
|
|
|
|
public class EmcDefaultValues {
|
2013-09-09 21:57:07 +02:00
|
|
|
|
2013-09-10 03:48:34 +02:00
|
|
|
private static EmcDefaultValues defaultValues = null;
|
2013-09-30 22:06:37 +02:00
|
|
|
|
|
|
|
private ImmutableMap<CustomWrappedStack, EmcValue> defaultValueMap;
|
2013-08-23 16:59:50 +02:00
|
|
|
|
2013-09-10 03:48:34 +02:00
|
|
|
private EmcDefaultValues() {
|
2013-09-30 22:06:37 +02:00
|
|
|
|
2013-09-10 03:48:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static EmcDefaultValues getInstance() {
|
|
|
|
|
|
|
|
if (defaultValues == null) {
|
|
|
|
defaultValues = new EmcDefaultValues();
|
|
|
|
defaultValues.init();
|
|
|
|
}
|
|
|
|
|
|
|
|
return defaultValues;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void init() {
|
|
|
|
|
2013-09-30 22:06:37 +02:00
|
|
|
ImmutableMap.Builder<CustomWrappedStack, EmcValue> valueMapBuilder = ImmutableMap.builder();
|
|
|
|
|
|
|
|
valueMapBuilder.put(new CustomWrappedStack(new EnergyStack(EnergyStack.VANILLA_SMELTING_ENERGY_NAME)),
|
|
|
|
new EmcValue((32 * 0.2F / 1600), EmcComponent.KINETIC_UNIT_COMPONENT));
|
|
|
|
|
|
|
|
valueMapBuilder.put(new CustomWrappedStack(Block.cobblestone), new EmcValue(1, EmcComponent.CORPOREAL_UNIT_COMPONENT));
|
|
|
|
valueMapBuilder.put(new CustomWrappedStack(Block.wood), new EmcValue(32, EmcComponent.CORPOREAL_UNIT_COMPONENT));
|
|
|
|
valueMapBuilder.put(new CustomWrappedStack(Block.oreIron), new EmcValue(256, EmcComponent.CORPOREAL_UNIT_COMPONENT));
|
|
|
|
valueMapBuilder.put(new CustomWrappedStack(Block.oreGold), new EmcValue(2048, EmcComponent.CORPOREAL_UNIT_COMPONENT));
|
|
|
|
valueMapBuilder.put(new CustomWrappedStack(Block.oreDiamond), new EmcValue(8192, EmcComponent.CORPOREAL_UNIT_COMPONENT));
|
|
|
|
|
|
|
|
defaultValueMap = valueMapBuilder.build();
|
2013-09-10 03:48:34 +02:00
|
|
|
}
|
|
|
|
|
2013-09-30 22:06:37 +02:00
|
|
|
public ImmutableMap<CustomWrappedStack, EmcValue> getDefaultValueMap() {
|
2013-09-10 03:48:34 +02:00
|
|
|
|
|
|
|
return defaultValueMap;
|
2013-08-23 16:59:50 +02:00
|
|
|
}
|
|
|
|
}
|