This commit is contained in:
modmuss50 2019-08-19 20:23:32 +01:00
parent a30e86b4cb
commit 33556c8262
3 changed files with 3 additions and 1269 deletions

View file

@ -45,6 +45,7 @@ import net.minecraft.util.math.BlockPos;
import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.Registry;
import net.minecraft.world.IWorld; import net.minecraft.world.IWorld;
import org.apache.commons.lang3.Validate; import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.text.WordUtils;
import reborncore.common.fluid.FluidUtil; import reborncore.common.fluid.FluidUtil;
import reborncore.common.fluid.container.ItemFluidInfo; import reborncore.common.fluid.container.ItemFluidInfo;
import reborncore.common.util.ItemNBTHelper; import reborncore.common.util.ItemNBTHelper;
@ -81,7 +82,7 @@ public class ItemDynamicCell extends Item implements ItemFluidInfo {
Fluid fluid = getFluid(itemStack); Fluid fluid = getFluid(itemStack);
if(fluid != Fluids.EMPTY){ if(fluid != Fluids.EMPTY){
//TODO use translation keys for fluid and the cell https://fabric.asie.pl/wiki/tutorial:lang?s[]=translation might be useful //TODO use translation keys for fluid and the cell https://fabric.asie.pl/wiki/tutorial:lang?s[]=translation might be useful
return new LiteralText(FluidUtil.getFluidName(fluid) + " Cell"); return new LiteralText(WordUtils.capitalizeFully(FluidUtil.getFluidName(fluid).replaceAll("_", " ")) + " Cell");
} }
return super.getName(itemStack); return super.getName(itemStack);
} }

View file

@ -663,7 +663,7 @@
"_comment26": "Fluid buckets", "_comment26": "Fluid buckets",
"item.techreborn.beryllium_bucket": "Beryllium", "item.techreborn.beryllium_bucket": "Beryllium",
"item.techreborn.calcium_bucket": "Calcium", "item.techreborn.calcium_bucket": "Calcium",
"item.techreborn.calciumcarbonate_bucket": "Calcium Carbonate", "item.techreborn.calcium_carbonate_bucket": "Calcium Carbonate",
"item.techreborn.carbon_bucket": "Carbon", "item.techreborn.carbon_bucket": "Carbon",
"item.techreborn.carbon_fiber_bucket": "Carbon Fiber", "item.techreborn.carbon_fiber_bucket": "Carbon Fiber",
"item.techreborn.chlorite_bucket": "Chlorite", "item.techreborn.chlorite_bucket": "Chlorite",

File diff suppressed because it is too large Load diff