Changed translation names for ingredients

This commit is contained in:
drcrazy 2018-09-10 13:42:22 +03:00
parent 3444c05c40
commit 35669641ba
15 changed files with 59 additions and 184 deletions

View file

@ -28,11 +28,8 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.inventory.Slot;
import net.minecraftforge.items.IItemHandler;
import org.apache.commons.lang3.Range;
import org.apache.commons.lang3.tuple.Pair;
import reborncore.api.tile.ItemHandlerProvider;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.tile.TileLegacyMachineBase;
import java.util.ArrayList;

View file

@ -29,7 +29,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.energy.CapabilityEnergy;
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
import net.minecraftforge.items.IItemHandler;
import org.apache.commons.lang3.Range;
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.tuple.Pair;

View file

@ -102,7 +102,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "DUST_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".dust." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -135,7 +135,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "DUST_SMALL_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".dustsmall." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -163,7 +163,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "GEM_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".gem." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -192,7 +192,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "INGOT_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".ingot." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -221,7 +221,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "NUGGET_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".nuggets." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -256,7 +256,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".part." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -287,7 +287,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "PLATE_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".plate." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}

View file

@ -106,16 +106,12 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 20
}
]
},
{
"type": "item",
"name": "techreborn:ingot",
"name": "techreborn:ingotmixedmetal",
"entryName": "mixed_metal_ingot",
"weight": 5,
"functions": [
@ -125,10 +121,6 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 21
}
]
},
@ -146,15 +138,9 @@
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:circuitBasic",
"entryName": "basic_circuit",
"weight": 5,
"functions": [
{
"function": "set_data",
"data": 29
}
]
"weight": 5
},
{
"type": "empty",

View file

@ -106,16 +106,12 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 20
}
]
},
{
"type": "item",
"name": "techreborn:ingot",
"name": "techreborn:ingotmixedmetal",
"entryName": "mixed_metal_ingot",
"weight": 5,
"functions": [
@ -125,10 +121,6 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 21
}
]
},
@ -146,15 +138,9 @@
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:circuitBasic",
"entryName": "basic_circuit",
"weight": 5,
"functions": [
{
"function": "set_data",
"data": 29
}
]
"weight": 5
},
{
"type": "empty",

View file

@ -111,15 +111,9 @@
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:energyflowcircuit",
"entryName": "energy_flow_circuit",
"weight": 30,
"functions": [
{
"function": "set_data",
"data": 0
}
]
"weight": 30
},
{
"type": "empty",

View file

@ -106,16 +106,12 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 20
}
]
},
{
"type": "item",
"name": "techreborn:ingot",
"name": "techreborn:ingotmixedmetal",
"entryName": "mixed_metal_ingot",
"weight": 5,
"functions": [
@ -125,10 +121,6 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 21
}
]
},
@ -146,15 +138,9 @@
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:circuitBasic",
"entryName": "basic_circuit",
"weight": 5,
"functions": [
{
"function": "set_data",
"data": 29
}
]
"weight": 5
},
{
"type": "empty",

View file

@ -109,6 +109,21 @@
}
]
},
{
"type": "item",
"name": "techreborn:ingotmixedmetal",
"entryName": "mixed_metal_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:machine_frame",
@ -123,15 +138,9 @@
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:circuitBasic",
"entryName": "basic_circuit",
"weight": 5,
"functions": [
{
"function": "set_data",
"data": 29
}
]
"weight": 5
},
{
"type": "empty",

View file

@ -126,27 +126,15 @@
},
{
"type": "item",
"name": "techreborn:machine_frame",
"name": "techreborn:circuitelite",
"entryName": "data_control_circuit",
"weight": 15,
"functions": [
{
"function": "set_data",
"data": 1
}
]
"weight": 15
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:datastoragecircuit",
"entryName": "data_storage_circuit",
"weight": 15,
"functions": [
{
"function": "set_data",
"data": 2
}
]
"weight": 15
},
{
"type": "empty",

View file

@ -106,16 +106,12 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 20
}
]
},
{
"type": "item",
"name": "techreborn:ingot",
"name": "techreborn:ingotmixedmetal",
"entryName": "mixed_metal_ingot",
"weight": 5,
"functions": [
@ -125,10 +121,6 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 21
}
]
},
@ -146,15 +138,9 @@
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:circuitBasic",
"entryName": "basic_circuit",
"weight": 5,
"functions": [
{
"function": "set_data",
"data": 29
}
]
"weight": 5
},
{
"type": "empty",

View file

@ -126,27 +126,15 @@
},
{
"type": "item",
"name": "techreborn:machine_frame",
"name": "techreborn:circuitelite",
"entryName": "data_control_circuit",
"weight": 15,
"functions": [
{
"function": "set_data",
"data": 1
}
]
"weight": 15
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:datastoragecircuit",
"entryName": "data_storage_circuit",
"weight": 15,
"functions": [
{
"function": "set_data",
"data": 2
}
]
"weight": 15
},
{
"type": "empty",

View file

@ -126,27 +126,15 @@
},
{
"type": "item",
"name": "techreborn:machine_frame",
"name": "techreborn:circuitelite",
"entryName": "data_control_circuit",
"weight": 15,
"functions": [
{
"function": "set_data",
"data": 1
}
]
"weight": 15
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:datastoragecircuit",
"entryName": "data_storage_circuit",
"weight": 15,
"functions": [
{
"function": "set_data",
"data": 2
}
]
"weight": 15
},
{
"type": "empty",

View file

@ -126,27 +126,15 @@
},
{
"type": "item",
"name": "techreborn:machine_frame",
"name": "techreborn:circuitelite",
"entryName": "data_control_circuit",
"weight": 15,
"functions": [
{
"function": "set_data",
"data": 1
}
]
"weight": 15
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:datastoragecircuit",
"entryName": "data_storage_circuit",
"weight": 15,
"functions": [
{
"function": "set_data",
"data": 2
}
]
"weight": 15
},
{
"type": "empty",

View file

@ -106,16 +106,12 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 20
}
]
},
{
"type": "item",
"name": "techreborn:ingot",
"name": "techreborn:ingotmixedmetal",
"entryName": "mixed_metal_ingot",
"weight": 5,
"functions": [
@ -125,10 +121,6 @@
"min": 1,
"max": 2
}
},
{
"function": "set_data",
"data": 21
}
]
},
@ -146,15 +138,9 @@
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:circuitBasic",
"entryName": "basic_circuit",
"weight": 5,
"functions": [
{
"function": "set_data",
"data": 29
}
]
"weight": 5
},
{
"type": "empty",

View file

@ -111,15 +111,9 @@
},
{
"type": "item",
"name": "techreborn:part",
"name": "techreborn:energyflowcircuit",
"entryName": "energy_flow_circuit",
"weight": 30,
"functions": [
{
"function": "set_data",
"data": 0
}
]
"weight": 30
},
{
"type": "empty",