Fix lang and parts
This commit is contained in:
parent
db9db5b77d
commit
9ac21ded30
8 changed files with 366 additions and 994 deletions
|
@ -28,6 +28,8 @@ import net.fabricmc.api.ModInitializer;
|
||||||
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
|
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
|
||||||
import net.minecraft.block.DispenserBlock;
|
import net.minecraft.block.DispenserBlock;
|
||||||
import net.minecraft.item.ItemGroup;
|
import net.minecraft.item.ItemGroup;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.item.Items;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
@ -53,15 +55,15 @@ public class TechReborn implements ModInitializer {
|
||||||
public static CommonProxy proxy = new CommonProxy();
|
public static CommonProxy proxy = new CommonProxy();
|
||||||
public static TechReborn INSTANCE;
|
public static TechReborn INSTANCE;
|
||||||
|
|
||||||
public static final ItemGroup ITEMGROUP = FabricItemGroupBuilder.build(new Identifier("techreborn", "item_group"), TRContent.Parts.MACHINE_PARTS::getStack);
|
public static ItemGroup ITEMGROUP = FabricItemGroupBuilder.build(
|
||||||
|
new Identifier("techreborn", "item_group"),
|
||||||
|
() -> new ItemStack(TRContent.NUKE));
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
INSTANCE = this;
|
INSTANCE = this;
|
||||||
|
// RegistrationManager registrationManager = new RegistrationManager("techreborn", getClass());
|
||||||
RegistrationManager registrationManager = new RegistrationManager("techreborn", getClass());
|
// TechRebornAPI.subItemRetriever = new SubItemRetriever();
|
||||||
|
|
||||||
TechRebornAPI.subItemRetriever = new SubItemRetriever();
|
|
||||||
// Done like this to load them here
|
// Done like this to load them here
|
||||||
ModFluids.values();
|
ModFluids.values();
|
||||||
|
|
||||||
|
@ -120,7 +122,6 @@ public class TechReborn implements ModInitializer {
|
||||||
|
|
||||||
ModRecipes.postInit();
|
ModRecipes.postInit();
|
||||||
|
|
||||||
|
|
||||||
LOGGER.info("TechReborn setup done!");
|
LOGGER.info("TechReborn setup done!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class ModRegistry {
|
||||||
RebornRegistry.registerBlock(value.frame, itemGroup);
|
RebornRegistry.registerBlock(value.frame, itemGroup);
|
||||||
RebornRegistry.registerBlock(value.casing, itemGroup);
|
RebornRegistry.registerBlock(value.casing, itemGroup);
|
||||||
});
|
});
|
||||||
Arrays.stream(TRContent.SolarPanels.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
Arrays.stream(SolarPanels.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
||||||
Arrays.stream(Cables.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
Arrays.stream(Cables.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
||||||
Arrays.stream(Machine.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
Arrays.stream(Machine.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
||||||
|
|
||||||
|
|
|
@ -618,9 +618,11 @@ public class TRContent {
|
||||||
, WATER_COOLANT_CELL_10K,
|
, WATER_COOLANT_CELL_10K,
|
||||||
WATER_COOLANT_CELL_30K,
|
WATER_COOLANT_CELL_30K,
|
||||||
WATER_COOLANT_CELL_60K,
|
WATER_COOLANT_CELL_60K,
|
||||||
|
|
||||||
HELIUM_COOLANT_CELL_60K,
|
HELIUM_COOLANT_CELL_60K,
|
||||||
HELIUM_COOLANT_CELL_360K,
|
|
||||||
HELIUM_COOLANT_CELL_180K,
|
HELIUM_COOLANT_CELL_180K,
|
||||||
|
HELIUM_COOLANT_CELL_360K,
|
||||||
|
|
||||||
NAK_COOLANT_CELL_60K,
|
NAK_COOLANT_CELL_60K,
|
||||||
NAK_COOLANT_CELL_180K,
|
NAK_COOLANT_CELL_180K,
|
||||||
NAK_COOLANT_CELL_360K,
|
NAK_COOLANT_CELL_360K,
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -10,7 +10,7 @@
|
||||||
"item": "techreborn:advanced_circuit"
|
"item": "techreborn:advanced_circuit"
|
||||||
},
|
},
|
||||||
"P": {
|
"P": {
|
||||||
"item": "techreborn:aluminium_plate"
|
"item": "techreborn:aluminum_plate"
|
||||||
},
|
},
|
||||||
"B": {
|
"B": {
|
||||||
"item": "techreborn:lithium_ion_battery"
|
"item": "techreborn:lithium_ion_battery"
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"item": "techreborn:insulated_gold_cable"
|
"item": "techreborn:insulated_gold_cable"
|
||||||
},
|
},
|
||||||
"P": {
|
"P": {
|
||||||
"item": "techreborn:aluminium_plate"
|
"item": "techreborn:aluminum_plate"
|
||||||
},
|
},
|
||||||
"F": {
|
"F": {
|
||||||
"item": "techreborn:cell"
|
"item": "techreborn:cell"
|
||||||
|
|
Loading…
Add table
Reference in a new issue