Paint Ball Translations

This commit is contained in:
Sebastian Hartte
2020-06-11 01:21:48 +02:00
parent d37345ccfe
commit 9bde4dd899
15 changed files with 379 additions and 44 deletions
@@ -43,26 +43,9 @@ public class ItemPaintBall extends AEBaseItem
this.lumen = lumen;
}
@Override
public ITextComponent getDisplayName(final ItemStack is )
public AEColor getColor()
{
// FIXME: in the new system, we should have different items for the colors,
// FIXME: Making this function fully redundant
return super.getDisplayName( is ).shallowCopy().appendText(" - ").appendSibling(this.getExtraName( is ));
}
private ITextComponent getExtraName( final ItemStack is )
{
return new TranslationTextComponent(this.getColor(is).translationKey);
}
public AEColor getColor( final ItemStack is )
{
Item item = is.getItem();
if (item instanceof ItemPaintBall) {
return ((ItemPaintBall) item).color;
}
return AEColor.TRANSPARENT;
return color;
}
public boolean isLumen()