diff --git a/src/main/java/com/minelittlepony/common/client/gui/style/IStyled.java b/src/main/java/com/minelittlepony/common/client/gui/style/IStyled.java index af450778..6256ea0f 100644 --- a/src/main/java/com/minelittlepony/common/client/gui/style/IStyled.java +++ b/src/main/java/com/minelittlepony/common/client/gui/style/IStyled.java @@ -1,7 +1,13 @@ package com.minelittlepony.common.client.gui.style; +import java.util.function.Function; + public interface IStyled> extends IStyleFactory { + default T styled(Function styleChange) { + return setStyle(styleChange.apply(getStyle())); + } + default T setStyle(IStyleFactory factory) { return setStyle(factory.getStyle()); }