Смотрите видео ниже, чтобы узнать, как установить наш сайт в качестве веб-приложения на домашнем экране.
Примечание: This feature may not be available in some browsers.
<repository>
<id>authlib</id>
<url>https://papermc.io/repo/repository/maven-releases/</url>
</repository>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.25</version>
<scope>provided</scope>
</dependency>
ItemStack item = new ItemStack(Material.PLAYER_HEAD);
SkullMeta skullmeta = (SkullMeta) item.getItemMeta();
final GameProfile profile = new GameProfile(UUID.randomUUID(), null);
profile.getProperties().put("textures", new Property("textures", "Сюда текстурку"));
try {
final Field profileField = skullmeta.getClass().getDeclaredField("profile")...
<repository>
<id>authlib</id>
<url>https://papermc.io/repo/repository/maven-releases/</url>
</repository>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.25</version>
<scope>provided</scope>
</dependency>
ItemStack item = new ItemStack(Material.PLAYER_HEAD);
SkullMeta skullmeta = (SkullMeta) item.getItemMeta();
final GameProfile profile = new GameProfile(UUID.randomUUID(), null);
profile.getProperties().put("textures", new Property("textures", "Сюда текстурку"));
try {
final Field profileField = skullmeta.getClass().getDeclaredField("profile");
profileField.setAccessible(true);
profileField.set(skullmeta, profile);
}
catch (IllegalAccessException | NoSuchFieldException ex2) {
ex2.printStackTrace();
}
item.setItemMeta(skullmeta);
Мы используем основные cookies для обеспечения работы этого сайта, а также дополнительные cookies для обеспечения максимального удобства пользователя.
Посмотрите дополнительную информацию и настройте свои предпочтения