mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
<400 errors
This commit is contained in:
1 parent
af008b9395
commit
c73eef6be8
90 files changed
+880
-749
No files matched your search
@@ -1,8 +1,7 @@
|
||||
package mekanism.api;
|
||||
|
||||
import net.minecraft.util.IStringSerializable;
|
||||
|
||||
import com.sun.imageio.plugins.common.I18N;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
/**
|
||||
* Simple color enum for adding colors to in-game GUI strings of text.
|
||||
@@ -60,12 +59,12 @@ public enum EnumColor implements IStringSerializable
|
||||
*/
|
||||
public String getLocalizedName()
|
||||
{
|
||||
return I18N.getString("color." + unlocalizedName);
|
||||
return I18n.translateToLocal("color." + unlocalizedName);
|
||||
}
|
||||
|
||||
public String getDyeName()
|
||||
{
|
||||
return I18N.getString("dye." + unlocalizedName);
|
||||
return I18n.translateToLocal("dye." + unlocalizedName);
|
||||
}
|
||||
|
||||
public String getOreDictName()
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package mekanism.api;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
||||
public interface IMekWrench
|
||||
{
|
||||
public boolean canUseWrench(EntityPlayer player, BlockPos pos);
|
||||
public boolean canUseWrench(ItemStack stack, EntityPlayer player, BlockPos pos);
|
||||
}
|
||||
@@ -6,11 +6,10 @@ import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
|
||||
import com.sun.imageio.plugins.common.I18N;
|
||||
|
||||
/**
|
||||
* Gas - a class used to set specific properties of gasses when used or seen in-game.
|
||||
* @author aidancbrady
|
||||
@@ -98,7 +97,7 @@ public class Gas
|
||||
*/
|
||||
public String getLocalizedName()
|
||||
{
|
||||
return I18N.getString(getUnlocalizedName());
|
||||
return I18n.translateToLocal(getUnlocalizedName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package mekanism.api.gas;
|
||||
|
||||
import com.sun.imageio.plugins.common.I18N;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
|
||||
public class OreGas extends Gas
|
||||
@@ -34,6 +34,6 @@ public class OreGas extends Gas
|
||||
|
||||
public String getOreName()
|
||||
{
|
||||
return I18N.getString(oreName);
|
||||
return I18n.translateToLocal(oreName);
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,7 @@ package mekanism.api.infuse;
|
||||
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import com.sun.imageio.plugins.common.I18N;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
/**
|
||||
* The types of infuse currently available in Mekanism.
|
||||
@@ -44,6 +43,6 @@ public final class InfuseType
|
||||
|
||||
public String getLocalizedName()
|
||||
{
|
||||
return I18N.getString(unlocalizedName);
|
||||
return I18n.translateToLocal(unlocalizedName);
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,7 @@ package mekanism.api.transmitters;
|
||||
|
||||
import mekanism.api.gas.IGasTransmitter;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
import com.sun.imageio.plugins.common.I18N;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
public enum TransmissionType
|
||||
{
|
||||
@@ -34,7 +33,7 @@ public enum TransmissionType
|
||||
|
||||
public String localize()
|
||||
{
|
||||
return I18N.getString("transmission." + getTransmission());
|
||||
return I18n.translateToLocal("transmission." + getTransmission());
|
||||
}
|
||||
|
||||
public static boolean checkTransmissionType(ITransmitter sideTile, TransmissionType type)
|
||||
|
||||
Reference in new issue
Block a user