@Override
public void getHelpTooltip(final Tooltip tooltip, ITooltipFlag tooltipFlag) {
final InventorySlot slot = this.getInventorySlot();
if (slot != null) {
tooltip.add(slot.getName());
if (tooltipFlag.isAdvanced()) {
Collection<EnumFacing> inputSides = slot.getInputSides();
if (inputSides.size() > 0) {
tooltip.add(TextFormatting.GRAY + I18N.localise(ModId.CORE, "gui.side.insert", MachineSide.asString(inputSides)));
}
Collection<EnumFacing> outputSides = slot.getOutputSides();
if (outputSides.size() > 0) {
tooltip.add(TextFormatting.GRAY + I18N.localise(ModId.CORE, "gui.side.extract", MachineSide.asString(outputSides)));
}
if (slot.isReadOnly()) {
tooltip.add(TextFormatting.GRAY + I18N.localise(ModId.CORE, "gui.slot.pickup.only"));
}
}
} else if (this.slot.inventory instanceof WindowInventory) {
if (tooltipFlag.isAdvanced()) {
final SlotValidator s = ((WindowInventory) this.slot.inventory).getValidator(this.slot.getSlotIndex());
tooltip.add("Accepts: " + ((s == null) ? "Any Item" : s.getTooltip()));
}
} else if (this.slot.inventory instanceof InventoryPlayer) {
if (tooltipFlag.isAdvanced()) {
tooltip.add(I18N.localise(ModId.CORE, "gui.slot.player.inventory"));
}
}
}