This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MINECRAFT_LANGUAGES = List.of( | |
"af_za", | |
"ar_sa", | |
"ast_es", | |
"az_az", | |
"ba_ru", | |
"bar", | |
"be_by", | |
"bg_bg", | |
"br_fr", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.function.Function; | |
import static java.lang.Math.*; | |
// https://easings.net/ | |
// https://gist.github.com/dev-hydrogen/21a66f83f0386123e0c0acf107254843 | |
public enum Easing { | |
easeInSine(x -> 1 - cos(x * PI) / 2), | |
easeOutSine(x -> sin(x * PI) / 2), | |
easeInOutSine(x -> -(cos(PI * x) - 1) / 2), |