use of binnie.core.machines.inventory.Validator in project Binnie by ForestryMC.
the class ErrorState method getTooltip.
public String getTooltip(ContainerCraftGUI container) {
Collection<CustomSlot> slots = getCustomSlots(container);
Set<Validator<?>> validators = new HashSet<>();
for (CustomSlot slot : slots) {
InventorySlot inventorySlot = slot.getInventorySlot();
if (inventorySlot != null) {
SlotValidator validator = inventorySlot.getValidator();
if (validator != null) {
validators.add(validator);
}
}
}
return definition.getDescription(validators);
}
Aggregations