Search in sources :

Example 1 with ProgressWidget

use of com.lowdragmc.multiblocked.api.gui.recipe.ProgressWidget in project Multiblocked by Low-Drag-MC.

the class ProgressCapabilityTrait method createUI.

@Override
public void createUI(ComponentTileEntity<?> component, WidgetGroup group, PlayerEntity player) {
    super.createUI(component, group, player);
    group.addWidget(new ProgressWidget(this::getProgress, x, y, width, height, new ResourceTexture(texture)).setDynamicHoverTips(this::dynamicHoverTips));
}
Also used : ResourceTexture(com.lowdragmc.lowdraglib.gui.texture.ResourceTexture) ProgressWidget(com.lowdragmc.multiblocked.api.gui.recipe.ProgressWidget)

Aggregations

ResourceTexture (com.lowdragmc.lowdraglib.gui.texture.ResourceTexture)1 ProgressWidget (com.lowdragmc.multiblocked.api.gui.recipe.ProgressWidget)1