This file contains 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.HashMap; | |
import java.util.Map; | |
import java.util.function.Function; | |
public class CachedFunction<T, R> { | |
private final Function<T, R> func; | |
private final Map<Integer, R> cache = new HashMap<>(); |
This file contains 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
package PACKAGE.NAME.HERE; | |
import net.md_5.bungee.api.ChatColor; | |
import net.md_5.bungee.api.chat.*; | |
import net.md_5.bungee.api.chat.hover.content.Content; | |
import net.md_5.bungee.api.chat.hover.content.Entity; | |
import net.md_5.bungee.api.chat.hover.content.Item; | |
import net.md_5.bungee.api.chat.hover.content.Text; | |
import java.util.ArrayList; |
This file contains 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
[ | |
"aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet", | |
"brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan", | |
"darkblue", "darkcyan","darkgoldenrod","darkgray","darkgrey","darkgreen","darkkhaki","darkmagenta","darkolivegreen", | |
"darkorange","darkred", "darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise", | |
"darkviolet","deeppink","deepskyblue", "dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen", | |
"fuchsia","gainsboro","ghostwhite","gold","goldenrod", "gray","grey","green","greenyellow","honeydew","hotpink", | |
"indianred","indigo","ivory","khaki","lavender","lavenderblush", "lawngreen","lemonchiffon","lightblue","lightcoral", | |
"lightcyan","lightgoldenrodyellow","lightgray","lightgrey","lightgreen", "lightpink","lightsalmon","lightseagreen", | |
"lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow", |
This file contains 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
{ | |
"variants": { | |
"instrument=banjo,note=0,powered=true": { | |
"model": "minecraft:block/note_block" | |
}, | |
"instrument=banjo,note=0,powered=false": { | |
"model": "minecraft:block/note_block" | |
}, | |
"instrument=banjo,note=1,powered=true": { | |
"model": "minecraft:block/note_block" |