Add support for references in window inflater

This commit is contained in:
2021-03-16 20:11:09 +01:00
parent 397e9e1f9c
commit e5b97546f6
3 changed files with 59 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
package com.bartlomiejpluta.base.api.game.gui.window;
public interface Inflatable {
default void onInflate() {
// do nothing
}
}

View File

@@ -0,0 +1,12 @@
package com.bartlomiejpluta.base.api.game.gui.window;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Ref {
String value();
}