package de.geolykt.starloader.impl.gui; import java.util.Objects; import org.jetbrains.annotations.NotNull; import snoddasmannen.galimulator.ui.class_38; public class SLSidebarButton extends class_38 { protected final @NotNull Runnable action; public SLSidebarButton(@NotNull String textureName, int w, int h, @NotNull Runnable action) { super(Objects.requireNonNull(textureName), w, h); this.action = Objects.requireNonNull(action); } @Override protected void a(float float1, float float2) { action.run(); } }