Updating to 14.23.5.2808; naming fixes where necessary

This commit is contained in:
Dave Smith committed 2019-02-24 12:21:48 -07:00
1 parent a79a3e1658
commit 8d3f8df49c
93 files changed
+171 -177

No files matched your search

@@ -68,7 +68,7 @@ public class CapeBufferDownload extends Thread
public ThreadDownloadImageData downloadCape()
{
try {
File capeFile = new File(resourceLocation.getResourcePath() + ".png");
File capeFile = new File(resourceLocation.getPath() + ".png");
if(capeFile.exists())
{
@@ -1100,7 +1100,7 @@ public class ClientProxy extends CommonProxy
@Override
public File getMinecraftDir()
{
return Minecraft.getMinecraft().mcDataDir;
return Minecraft.getMinecraft().gameDir;
}
@Override
@@ -135,7 +135,7 @@ public class GuiSideConfiguration extends GuiMekanism
int x = slotPosMap.get(i).xPos;
int y = slotPosMap.get(i).yPos;
SideData data = configurable.getConfig().getOutput(currentType, EnumFacing.getFront(i));
SideData data = configurable.getConfig().getOutput(currentType, EnumFacing.byIndex(i));
if(data != TileComponentConfig.EMPTY)
{
@@ -184,7 +184,7 @@ public class GuiSideConfiguration extends GuiMekanism
int x = slotPosMap.get(i).xPos;
int y = slotPosMap.get(i).yPos;
SideData data = configurable.getConfig().getOutput(currentType, EnumFacing.getFront(i));
SideData data = configurable.getConfig().getOutput(currentType, EnumFacing.byIndex(i));
if(data != TileComponentConfig.EMPTY)
{
@@ -95,9 +95,9 @@ public class GuiTransporterConfig extends GuiMekanism
int x = slotPosMap.get(i).xPos;
int y = slotPosMap.get(i).yPos;
EnumColor color = configurable.getEjector().getInputColor(EnumFacing.getFront(i));
EnumColor color = configurable.getEjector().getInputColor(EnumFacing.byIndex(i));
if(configurable.getConfig().getOutput(TransmissionType.ITEM, EnumFacing.getFront(i)) != TileComponentConfig.EMPTY)
if(configurable.getConfig().getOutput(TransmissionType.ITEM, EnumFacing.byIndex(i)) != TileComponentConfig.EMPTY)
{
if(color != null)
{
@@ -153,9 +153,9 @@ public class GuiTransporterConfig extends GuiMekanism
int x = slotPosMap.get(i).xPos;
int y = slotPosMap.get(i).yPos;
EnumColor color = configurable.getEjector().getInputColor(EnumFacing.getFront(i));
EnumColor color = configurable.getEjector().getInputColor(EnumFacing.byIndex(i));
if(configurable.getConfig().getOutput(TransmissionType.ITEM, EnumFacing.getFront(i)) != TileComponentConfig.EMPTY)
if(configurable.getConfig().getOutput(TransmissionType.ITEM, EnumFacing.byIndex(i)) != TileComponentConfig.EMPTY)
{
if(xAxis >= x && xAxis <= x+14 && yAxis >= y && yAxis <= y+14)
{
@@ -55,7 +55,7 @@ public class GasStackHelper implements IIngredientHelper<GasStack>
@Override
public String getModId(GasStack ingredient)
{
return ingredient.getGas().getIcon().getResourceDomain();
return ingredient.getGas().getIcon().getNamespace();
}
@Override
@@ -67,7 +67,7 @@ public class GasStackHelper implements IIngredientHelper<GasStack>
@Override
public String getResourceId(GasStack ingredient)
{
return ingredient.getGas().getUnlocalizedName();
return ingredient.getGas().getTranslationKey();
}
@Override
@@ -256,7 +256,7 @@ public class RenderResizableCuboid {
if (face == null) {
return VEC_ZERO;
}
return new Vec3d(face.getFrontOffsetX(), face.getFrontOffsetY(), face.getFrontOffsetZ());
return new Vec3d(face.getXOffset(), face.getYOffset(), face.getZOffset());
}
@@ -76,7 +76,7 @@ public class RenderTickHandler
}
}
font.drawStringWithShadow("Block: " + block.getUnlocalizedName(), 1, 1, 0x404040);
font.drawStringWithShadow("Block: " + block.getTranslationKey(), 1, 1, 0x404040);
font.drawStringWithShadow("Metadata: " + obj.getBlockState(world), 1, 10, 0x404040);
font.drawStringWithShadow("Location: " + MekanismUtils.getCoordDisplay(obj), 1, 19, 0x404040);
font.drawStringWithShadow("TileEntity: " + tileDisplay, 1, 28, 0x404040);
@@ -69,9 +69,9 @@ public class MekanismOBJLoader implements ICustomModelLoader
for(String s : objModel.getMatLib().getMaterialNames())
{
if(objModel.getMatLib().getMaterial(s).getTexture().getTextureLocation().getResourcePath().startsWith("#"))
if(objModel.getMatLib().getMaterial(s).getTexture().getTextureLocation().getPath().startsWith("#"))
{
FMLLog.severe("OBJLoader: Unresolved texture '%s' for obj model '%s'", objModel.getMatLib().getMaterial(s).getTexture().getTextureLocation().getResourcePath(), modelLocation);
FMLLog.severe("OBJLoader: Unresolved texture '%s' for obj model '%s'", objModel.getMatLib().getMaterial(s).getTexture().getTextureLocation().getPath(), modelLocation);
builder.put(s, missing);
}
else {
@@ -92,13 +92,13 @@ public class MekanismOBJLoader implements ICustomModelLoader
@Override
public boolean accepts(ResourceLocation modelLocation)
{
return modelLocation.getResourcePath().endsWith(".obj.mek");
return modelLocation.getPath().endsWith(".obj.mek");
}
@Override
public IModel loadModel(ResourceLocation loc) throws Exception
{
ResourceLocation file = new ResourceLocation(loc.getResourceDomain(), loc.getResourcePath());
ResourceLocation file = new ResourceLocation(loc.getNamespace(), loc.getPath());
if(!modelCache.containsKey(file))
{
@@ -106,12 +106,12 @@ public class MekanismOBJLoader implements ICustomModelLoader
if(model instanceof OBJModel)
{
if(file.getResourcePath().contains("glow_panel"))
if(file.getPath().contains("glow_panel"))
{
MekanismOBJModel mekModel = new MekanismOBJModel(OBJModelType.GLOW_PANEL, ((OBJModel)model).getMatLib(), file);
modelCache.put(file, mekModel);
}
else if(file.getResourcePath().contains("transmitter"))
else if(file.getPath().contains("transmitter"))
{
MekanismOBJModel mekModel = new MekanismOBJModel(OBJModelType.TRANSMITTER, ((OBJModel)model).getMatLib(), file);
modelCache.put(file, mekModel);