Entity Names
This commit is contained in:
parent
da3367cec4
commit
8848759b30
|
|
@ -42,25 +42,7 @@ public class ItemEntity extends Item
|
||||||
{
|
{
|
||||||
if (hasEntityData(stack))
|
if (hasEntityData(stack))
|
||||||
{
|
{
|
||||||
|
|
||||||
/*
|
|
||||||
ResourceLocation key = new ResourceLocation(getEntityName(stack));
|
|
||||||
|
|
||||||
String name = I18n.translateToLocal(EntityList.getClass(key).getCanonicalName());
|
|
||||||
|
|
||||||
System.out.println(EntityList.getClass(key).getCanonicalName());
|
|
||||||
System.out.println(EntityList.getClass(key).getSimpleName());
|
|
||||||
System.out.println(EntityList.getClass(key).getName());
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//I18n.translateToLocal(entity.getDisplayName().getFormattedText())
|
|
||||||
|
|
||||||
//return name;
|
|
||||||
*/
|
|
||||||
|
|
||||||
return I18n.translateToLocal("entity."+EntityList.getTranslationName(new ResourceLocation(getEntityName(stack))) + ".name");
|
return I18n.translateToLocal("entity."+EntityList.getTranslationName(new ResourceLocation(getEntityName(stack))) + ".name");
|
||||||
//return getCustomName(stack);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
|
|
@ -223,7 +205,7 @@ public class ItemEntity extends Item
|
||||||
if(e == null)
|
if(e == null)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
int i = (int) (e.height * e.width) / 300;
|
int i = (int)(e.height * e.width);
|
||||||
if (i > 4)
|
if (i > 4)
|
||||||
i = 4;
|
i = 4;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user