gdxapp4d/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboon/death/BãßBȍőnCoffinGhost.java
2022-10-20 03:06:56 +02:00

92 lines
2.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package love.distributedrebirth.bassboon.death;
import java.util.List;
import java.util.Map;
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface BãßBȍőnCoffinGhost {
Object GHOST_OBJ(String key);
@SuppressWarnings("unchecked")
default <Y> Y GHOST_OBJ(String key, Class<Y> type) {
return (Y) GHOST_OBJ(key);
}
default String GHOST_STR(String key) {
return String.class.cast(GHOST_OBJ(key));
}
default Short GHOST_SHORT(String key) {
return Short.class.cast(GHOST_OBJ(key));
}
default Character GHOST_CHAR(String key) {
return Character.class.cast(GHOST_OBJ(key));
}
default Integer GHOST_INT(String key) {
return Integer.class.cast(GHOST_OBJ(key));
}
default Long GHOST_LONG(String key) {
return Long.class.cast(GHOST_OBJ(key));
}
default Boolean GHOST_BOOL(String key) {
return Boolean.class.cast(GHOST_OBJ(key));
}
default Float GHOST_FLOAT(String key) {
return Float.class.cast(GHOST_OBJ(key));
}
default Double GHOST_DOUBLE(String key) {
return Double.class.cast(GHOST_OBJ(key));
}
@SuppressWarnings("unchecked")
default Map<String,Object> GHOST_MAP_OBJ(String key) {
return Map.class.cast(GHOST_OBJ(key));
}
default Object GHOST_MAP_OBJ_VALUE(String key, String valueKey) {
return GHOST_MAP_OBJ(key).get(valueKey);
}
@SuppressWarnings("unchecked")
default Map<String,String> GHOST_MAP_STR(String key) {
return Map.class.cast(GHOST_OBJ(key));
}
default String GHOST_MAP_STR_VALUE(String key, String valueKey) {
return GHOST_MAP_STR(key).get(valueKey);
}
@SuppressWarnings("unchecked")
default Map<String,Integer> GHOST_MAP_INT(String key) {
return Map.class.cast(GHOST_OBJ(key));
}
default Integer GHOST_MAP_INT_VALUE(String key, String valueKey) {
return GHOST_MAP_INT(key).get(valueKey);
}
@SuppressWarnings("unchecked")
default List<Object> GHOST_LIST_OBJ(String key) {
return List.class.cast(GHOST_OBJ(key));
}
@SuppressWarnings("unchecked")
default List<String> GHOST_LIST_STR(String key) {
return List.class.cast(GHOST_OBJ(key));
}
@SuppressWarnings("unchecked")
default List<Integer> GHOST_LIST_INT(String key) {
return List.class.cast(GHOST_OBJ(key));
}
}