Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An utility to get heads of all the mobs in minecraft without contacting with Mojang API
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.properties.Property;
import com.mojang.authlib.properties.PropertyMap;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.EntityType;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.SkullMeta;
import java.lang.reflect.Field;
import java.util.UUID;
/**
* An utility to get heads of all the mobs in minecraft without contacting with Mojang API
* @author jaime29010
*/
public enum SkullType {
BLAZE(EntityType.BLAZE, "Blaze Head", "eyJ0aW1lc3RhbXAiOjE0NjczMTAyNTYwMDYsInByb2ZpbGVJZCI6IjY0MjQ4NTljNTk0NDQwNzdiZTllMzJiMTY0MjdjMTIwIiwicHJvZmlsZU5hbWUiOiIyMDkiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlL2YzYTE2NzM0OGZhY2U1YzcwY2Q2ZjIzZDYzMjE3ZWRjNDM4ZGViNTlmM2YwM2Q2YTU3MTdjNGQxZTc5YWY2In19fQ==\", \"kNiIzLVNE/NYk0E5m+0TSPc52tmRasCNKsejA89FzRKC1GNE0Glk58aFZxWntpjprzLVNTffOmcK2qFe59qgN6MPU6G7DcvtnV6arEro9x189P5Q6ecubwmcEYbSIwl/LFHa3Lf400t9fuW1mQdhfWKpyZRBaSTU37HAATDZjz2jL63vswe0nDsSE3tQHZgO7pr42VONwwyt/qTpzDN7vp1zqpEO++dt61zAezn7UzwGarZGqIL/bTSBsdJk3KSQgE61z6OM0w0EuyAAQIzO/7w8I+XtswHMiYChf0r+orPEKEd74nsJ8Yj1DLeH2zEe00p6yB26Nx3MbE+fq8g3sD9owd9KNAwlTyd6kNU9EWBPp//0avMXB1lCtjBvQCDb4UDAJnXErZC0LihgZhC2t9t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V6aALCDgtXUMfrR1cGquuVcUvnxjVJQEAy2I5XAIM1Lzc5+GnwaaeGmkSwKHnGjcRhbYNl62s4bo56gdPfJvAjYMbTSreeQLbfiAtz+THtKlzL69Nr8Y5JwwwBBVHObRd5q/hJw4nqcbaSX1dQgDe/bKbwEvKfkXIynaLsFJYmbU5KWQtSxSLUrc7hwcybqXiMCmZhHZCETJ3LPZNvidM+xnS6ZENLi0AzRnELLPYkVi+hmnW72wc8O+AIBUO4+j86HLJW8HHv7rBQZzqBwLdq7B3VYMyY08B2psHW/bl1R3oKXW12w+5RmBvGLnsuLB5T6bwXWCr+l/kg0HwQHCHu3EUhvWtgOtVqq6dnvf8=");
private final EntityType type;
private final String name;
private final ItemStack item;
private final GameProfile profile;
SkullType(EntityType type, String name, String textures) {
this.type = type;
this.name = name;
item = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
SkullMeta meta = (SkullMeta) item.getItemMeta();
if (name != null) {
meta.setDisplayName(ChatColor.WHITE + name);
}
if (textures != null) {
profile = new GameProfile(UUID.randomUUID(), null);
profile.getProperties().put("textures", new Property("textures", textures));
try {
Field field = meta.getClass().getDeclaredField("profile");
field.setAccessible(true);
field.set(meta, profile);
} catch (Exception e) {
e.printStackTrace();
}
} else {
profile = null;
}
item.setItemMeta(meta);
}
public static SkullType from(EntityType type) {
for (SkullType skull : values()) {
if (skull.getEntityType() == type) {
return skull;
}
}
return null;
}
public static SkullType from(ItemStack item) {
if (item.getType() == Material.SKULL_ITEM) {
SkullMeta meta = (SkullMeta) item.getItemMeta();
try {
Field field = meta.getClass().getDeclaredField("profile");
field.setAccessible(true);
GameProfile profile = (GameProfile) field.get(meta);
if (profile != null) {
String textures = getTextures(profile);
for (SkullType skull : values()) {
GameProfile other = skull.getGameProfile();
if (other != null) {
String value = getTextures(other);
if (value != null && value.equals(textures)) {
return skull;
}
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
return null;
}
private static String getTextures(GameProfile profile) {
PropertyMap properties = profile.getProperties();
for (Property property : properties.get("textures")) {
if (property.getName().equals("textures")) {
return property.getValue();
}
}
return null;
}
public EntityType getEntityType() {
return type;
}
public String getName() {
return name;
}
public GameProfile getGameProfile() {
return profile;
}
public ItemStack getItemStack() {
return item;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.