mirror of
https://github.com/GTNewHorizons/IguanaTweaksTConstruct.git
synced 2026-11-26 06:43:05 +00:00
Normalize unlocalized item names
This commit is contained in:
1 parent
2ea499ba5d
commit
e1807c9a66
5 files changed
+7
-5
No files matched your search
@@ -28,7 +28,7 @@ public class ClayBucket extends ItemBucket
|
||||
{
|
||||
this(contents);
|
||||
|
||||
this.setUnlocalizedName(Reference.MOD_ID + "." + name);
|
||||
this.setUnlocalizedName(Reference.item(name));
|
||||
this.setTextureName(Reference.resource(texture));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ public class ClayBucketMilk extends ItemBucketMilk {
|
||||
public ClayBucketMilk() {
|
||||
this.setContainerItem(IguanaItems.clayBucketFired);
|
||||
|
||||
this.setUnlocalizedName(Reference.MOD_ID + ".clayBucketMilk");
|
||||
this.setUnlocalizedName(Reference.item("clayBucketMilk"));
|
||||
this.setTextureName(Reference.resource("clayBucketMilk"));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ public class ClayBucketTinkerLiquids extends FilledBucket {
|
||||
public ClayBucketTinkerLiquids(Block b) {
|
||||
super(b);
|
||||
|
||||
this.setUnlocalizedName(Reference.MOD_ID + ".clayBucketTinkerLiquid");
|
||||
this.setUnlocalizedName(Reference.item("clayBucketTinkerLiquid"));
|
||||
this.setContainerItem(IguanaItems.clayBucketFired);
|
||||
|
||||
// all fluids above 1000° are hot. Lava has 1300.
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ public class WearableBucket extends Item {
|
||||
public WearableBucket() {
|
||||
super();
|
||||
this.setContainerItem(IguanaItems.wearableBuckets);
|
||||
this.setUnlocalizedName(Reference.MOD_ID + ".wearable_bucket");
|
||||
this.setUnlocalizedName(Reference.item(".wearable_bucket"));
|
||||
|
||||
this.setMaxStackSize(1);
|
||||
}
|
||||
@@ -38,7 +38,7 @@ public class WearableBucket extends Item {
|
||||
if (i < 0 || i >= textureTypes.length)
|
||||
i = 0;
|
||||
|
||||
return Reference.resource(textureTypes[i]);
|
||||
return Reference.item(textureTypes[i]);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -26,4 +26,6 @@ public class Reference {
|
||||
{
|
||||
return String.format("%s:%s", RESOURCE, res);
|
||||
}
|
||||
public static String item(String name) { return String.format("%s.item.%s", MOD_ID, name);}
|
||||
public static String block(String name) { return String.format("%s.block.%s", MOD_ID, name);}
|
||||
}
|
||||
Reference in new issue
Block a user