use of pokefenn.totemic.tileentity.totem.StateSelection in project Totemic by TeamTotemic.
the class WailaTotemBase method getWailaBody.
@Override
@Nonnull
public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {
TileTotemBase tile = (TileTotemBase) accessor.getTileEntity();
if (tile.getState() instanceof StateSelection) {
String selectors = ((StateSelection) tile.getState()).getSelectors().stream().map(instr -> I18n.format(instr.getUnlocalizedName())).collect(Collectors.joining(", "));
currenttip.add(I18n.format("totemicmisc.selection", selectors));
} else if (tile.getState() instanceof StateStartup) {
Ceremony ceremony = ((StateStartup) tile.getState()).getCeremony();
currenttip.add(I18n.format("totemic.waila.ceremonyStartup", I18n.format(ceremony.getUnlocalizedName())));
} else if (tile.getState() instanceof StateCeremonyEffect) {
Ceremony ceremony = ((StateCeremonyEffect) tile.getState()).getCeremony();
currenttip.add(I18n.format("totemic.waila.ceremonyEffect", I18n.format(ceremony.getUnlocalizedName())));
}
return currenttip;
}
Aggregations