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

+1 -1
View File
@@ -73,7 +73,7 @@ public class Chunk3D
*/
public Chunk getChunk(World world)
{
return world.getChunkFromChunkCoords(x, z);
return world.getChunk(x, z);
}
/**
+4 -4
View File
@@ -219,7 +219,7 @@ public class Coord4D
return this;
}
return new Coord4D(x +(side.getFrontOffsetX()*amount), y +(side.getFrontOffsetY()*amount), z +(side.getFrontOffsetZ()*amount), dimensionId);
return new Coord4D(x +(side.getXOffset()*amount), y +(side.getYOffset()*amount), z +(side.getZOffset()*amount), dimensionId);
}
public ItemStack getStack(IBlockAccess world)
@@ -286,7 +286,7 @@ public class Coord4D
for(EnumFacing side : EnumFacing.VALUES)
{
if(side.getFrontOffsetX() == diff.x && side.getFrontOffsetY() == diff.y && side.getFrontOffsetZ() == diff.z)
if(side.getXOffset() == diff.x && side.getYOffset() == diff.y && side.getZOffset() == diff.z)
{
return side;
}
@@ -335,7 +335,7 @@ public class Coord4D
*/
public Coord4D step(EnumFacing side)
{
return translate(side.getFrontOffsetX(), side.getFrontOffsetY(), side.getFrontOffsetZ());
return translate(side.getXOffset(), side.getYOffset(), side.getZOffset());
}
/**
@@ -355,7 +355,7 @@ public class Coord4D
*/
public Chunk getChunk(World world)
{
return world.getChunkFromBlockCoords(getPos());
return world.getChunk(getPos());
}
/**
+2 -2
View File
@@ -70,7 +70,7 @@ public enum EnumColor implements IStringSerializable
return I18n.translateToLocal("color." + unlocalizedName);
}
public String getUnlocalizedName(){
public String getTranslationKey(){
return "color." + unlocalizedName;
}
@@ -94,7 +94,7 @@ public enum EnumColor implements IStringSerializable
}
public ITextComponent getTranslatedColouredComponent(){
ITextComponent t = new TextComponentTranslation(getUnlocalizedName());
ITextComponent t = new TextComponentTranslation(getTranslationKey());
t.getStyle().setColor(textFormatting);
return t;
}
+4 -4
View File
@@ -95,7 +95,7 @@ public class Gas
* Gets the unlocalized name of this Gas.
* @return this Gas's unlocalized name
*/
public String getUnlocalizedName()
public String getTranslationKey()
{
return "gas." + unlocalizedName;
}
@@ -106,7 +106,7 @@ public class Gas
*/
public String getLocalizedName()
{
return I18n.translateToLocal(getUnlocalizedName());
return I18n.translateToLocal(getTranslationKey());
}
/**
@@ -114,7 +114,7 @@ public class Gas
* @param s - unlocalized name to set
* @return this Gas object
*/
public Gas setUnlocalizedName(String s)
public Gas setTranslationKey(String s)
{
unlocalizedName = s;
@@ -210,7 +210,7 @@ public class Gas
*/
public static Gas readFromNBT(NBTTagCompound nbtTags)
{
if(nbtTags == null || nbtTags.hasNoTags())
if(nbtTags == null || nbtTags.isEmpty())
{
return null;
}
+1 -1
View File
@@ -83,7 +83,7 @@ public class GasStack
*/
public static GasStack readFromNBT(NBTTagCompound nbtTags)
{
if(nbtTags == null || nbtTags.hasNoTags())
if(nbtTags == null || nbtTags.isEmpty())
{
return null;
}
+1 -1
View File
@@ -239,7 +239,7 @@ public class GasTank implements GasTankInfo
*/
public static GasTank readFromNBT(NBTTagCompound nbtTags)
{
if(nbtTags == null || nbtTags.hasNoTags())
if(nbtTags == null || nbtTags.isEmpty())
{
return null;
}
@@ -34,7 +34,7 @@ public final class InfuseType
sprite = tex;
}
public InfuseType setUnlocalizedName(String name)
public InfuseType setTranslationKey(String name)
{
unlocalizedName = "infuse." + name;
@@ -32,7 +32,7 @@ public class BlockInfo
public int hashCode()
{
int code = 1;
code = 31 * code + block.getUnlocalizedName().hashCode();
code = 31 * code + block.getTranslationKey().hashCode();
code = 31 * code + meta;
return code;
}