inital commit

This commit is contained in:
2026-11-21 17:07:18 -05:00
commit 553a5aba24
693 changed files with 49285 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
Manifest-Version: 1.0
Created-By: Maven JAR Plugin 3.4.1
Build-Jdk-Spec: 17
@@ -0,0 +1,4 @@
#Created by Apache Maven 3.8.3
groupId=com.konghq
artifactId=unirest-java
version=4.0.0-RC2
@@ -0,0 +1,34 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.konghq</groupId>
<artifactId>unirest-java-parent</artifactId>
<version>4.0.0-RC2</version>
</parent>
<description>Simplified, lightweight HTTP client library.</description>
<artifactId>unirest-java</artifactId>
<packaging>jar</packaging>
<properties>
<main.dir>${project.parent.basedir}</main.dir>
<jetty-version>9.4.42.v20210604</jetty-version>
<alpine-version>1.1.3.v20160715</alpine-version>
</properties>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<!-- Build a standalone jar with package-relocated dependencies to avoid class-loading conflicts -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,3 @@
artifactId=cosmetics-plugin
groupId=com.minehut.cosmetics
version=1.0.6-SNAPSHOT
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.minehut.cosmetics</groupId>
<artifactId>cosmetics-plugin</artifactId>
<version>1.0.6-SNAPSHOT</version>
<packaging>jar</packaging>
<name>MinehutCosmetics</name>
<properties>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>17</source>
<target>17</target>
<excludes>
<exclude>src/main/**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>kong.unirest</pattern>
<shadedPattern>kong.unirest.cosmetics</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>papermc-repo</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>maven-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-java</artifactId>
<version>4.0.0-RC2</version>
</dependency>
</dependencies>
</project>
+95
View File
@@ -0,0 +1,95 @@
/* */ package com.minehut.cosmetics;
/* */
/* */ import com.minehut.cosmetics.api.InteractableBehaviorBridge;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticSupplier;
/* */ import java.util.function.Consumer;
/* */ import org.bukkit.entity.Player;
/* */ import org.jetbrains.annotations.Nullable;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class null
/* */ implements InteractableBehaviorBridge
/* */ {
/* */ @Nullable
/* */ public Consumer<Player> cosmeticBehavior(CosmeticSupplier<?> identifier) {
/* 77 */ return null;
/* */ }
/* */
/* */
/* */ public float mutateCooldown(Player player, float originalCooldown) {
/* 82 */ return originalCooldown;
/* */ }
/* */
/* */
/* */ public boolean hasPermissionOverride(Player player, Cosmetic cosmetic) {
/* 87 */ return false;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\Cosmetics$1.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
+10
View File
@@ -0,0 +1,10 @@
/* */ package com.minehut.cosmetics;
/* */
/* */ import com.minehut.cosmetics.config.Mode;
/* */
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\Cosmetics$2.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
+308
View File
@@ -0,0 +1,308 @@
/* */ package com.minehut.cosmetics;
/* */
/* */ import com.google.gson.Gson;
/* */ import com.google.gson.GsonBuilder;
/* */ import com.google.gson.JsonDeserializationContext;
/* */ import com.google.gson.JsonElement;
/* */ import com.google.gson.JsonObject;
/* */ import com.google.gson.JsonParseException;
/* */ import com.google.gson.JsonSerializationContext;
/* */ import com.minehut.cosmetics.api.CosmeticUIBridge;
/* */ import com.minehut.cosmetics.api.InteractableBehaviorBridge;
/* */ import com.minehut.cosmetics.api.PluginApi;
/* */ import com.minehut.cosmetics.commands.EquipCommand;
/* */ import com.minehut.cosmetics.commands.MenuCommand;
/* */ import com.minehut.cosmetics.commands.SkinCommand;
/* */ import com.minehut.cosmetics.commands.UnSkinCommand;
/* */ import com.minehut.cosmetics.commands.debug.Debug;
/* */ import com.minehut.cosmetics.commands.debug.GiveCosmetic;
/* */ import com.minehut.cosmetics.commands.smp.SmpCrateKeyCommand;
/* */ import com.minehut.cosmetics.config.Config;
/* */ import com.minehut.cosmetics.config.Mode;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticSupplier;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticsManager;
/* */ import com.minehut.cosmetics.cosmetics.crates.CratesModule;
/* */ import com.minehut.cosmetics.cosmetics.entities.EntityHandler;
/* */ import com.minehut.cosmetics.cosmetics.listeners.CosmeticEntityListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.CosmeticItemListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.CosmeticsListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.CosmeticsTeleportListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.DeathListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.EmojiListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.LeashListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.PlayerVisibilityListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.ResourcePackListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.skins.SkinDurabilityListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.skins.SkinEquipListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.skins.SkinModifyListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.skins.SkinTriggerListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.trinkets.IceStaffListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.trinkets.InteractableListener;
/* */ import com.minehut.cosmetics.cosmetics.listeners.visibility.VisibilityHandler;
/* */ import com.minehut.cosmetics.cosmetics.properties.CosmeticSlot;
/* */ import com.minehut.cosmetics.cosmetics.types.trinket.listener.TrinketListener;
/* */ import com.minehut.cosmetics.model.request.CosmeticState;
/* */ import com.minehut.cosmetics.modules.LocalStorageManager;
/* */ import com.minehut.cosmetics.modules.polling.RankPollingModule;
/* */ import com.minehut.cosmetics.modules.polling.ResourcePackPollingModule;
/* */ import com.minehut.cosmetics.network.ExternalAPI;
/* */ import com.minehut.cosmetics.network.InternalAPI;
/* */ import com.minehut.cosmetics.network.NetworkApi;
/* */ import com.minehut.cosmetics.pack.ResourcePackManager;
/* */ import com.minehut.cosmetics.util.EntityUtil;
/* */ import com.minehut.cosmetics.util.Version;
/* */ import com.minehut.cosmetics.util.data.Key;
/* */ import java.lang.reflect.Type;
/* */ import java.util.Locale;
/* */ import java.util.function.Consumer;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.World;
/* */ import org.bukkit.entity.Entity;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.event.Listener;
/* */ import org.bukkit.plugin.Plugin;
/* */ import org.bukkit.plugin.java.JavaPlugin;
/* */ import org.jetbrains.annotations.Nullable;
/* */
/* */ public final class Cosmetics extends JavaPlugin {
/* */ private Config config;
/* */ private CosmeticsManager manager;
/* */
/* 74 */ private InteractableBehaviorBridge behaviorBridge = new InteractableBehaviorBridge() {
/* */ @Nullable
/* */ public Consumer<Player> cosmeticBehavior(CosmeticSupplier<?> identifier) {
/* 77 */ return null;
/* */ }
/* */
/* */
/* */ public float mutateCooldown(Player player, float originalCooldown) {
/* 82 */ return originalCooldown;
/* */ }
/* */
/* */
/* */ public boolean hasPermissionOverride(Player player, Cosmetic cosmetic) {
/* 87 */ return false;
/* */ }
/* */ };
/* */
/* */
/* */ @Nullable
/* */ private CosmeticUIBridge uiBridge;
/* */
/* */ @Nullable
/* */ private LocalStorageManager localStorage;
/* */ @Nullable
/* */ private CratesModule crates;
/* */ private ResourcePackPollingModule packModule;
/* */ private EntityHandler entityHandler;
/* */ private VisibilityHandler visibilityHandler;
/* */ private ResourcePackManager resourcePackManager;
/* */ private PluginApi pluginApi;
/* */ private NetworkApi api;
/* */
/* */ public void onEnable() {
/* 107 */ Key.init((Plugin)this);
/* */
/* 109 */ Gson gson = buildGson();
/* 110 */ this.config = new Config((Plugin)this);
/* 111 */ this.manager = new CosmeticsManager();
/* 112 */ this.entityHandler = new EntityHandler();
/* 113 */ this.visibilityHandler = new VisibilityHandler(this);
/* 114 */ this.resourcePackManager = new ResourcePackManager();
/* 115 */ this.pluginApi = new PluginApi(this);
/* */
/* */
/* 118 */ switch (config().mode()) { case LOBBY:
/* */ case SMP:
/* 120 */ this.api = (NetworkApi)new InternalAPI(this.config, gson);
/* 121 */ this.crates = new CratesModule(this);
/* 122 */ (new GiveCosmetic()).register((Plugin)this);
/* 123 */ (new SmpCrateKeyCommand(this)).register((Plugin)this);
/* */ break;
/* */ case PLAYER_SERVER:
/* 126 */ this.localStorage = new LocalStorageManager((Plugin)this);
/* 127 */ this.api = (NetworkApi)new ExternalAPI(this.config, gson);
/* */
/* 129 */ registerEvents((Listener)new SkinTriggerListener(this, this.manager));
/* 130 */ registerEvents((Listener)new SkinEquipListener());
/* 131 */ registerEvents((Listener)new SkinDurabilityListener());
/* 132 */ registerEvents((Listener)new SkinModifyListener());
/* */
/* */
/* 135 */ (new SkinCommand(this)).register((Plugin)this);
/* 136 */ (new UnSkinCommand()).register((Plugin)this);
/* */ break; }
/* */
/* 139 */ if (Version.V_1_19.isSupported()) {
/* 140 */ registerEvents((Listener)new PlayerVisibilityListener());
/* */ }
/* 142 */ removeCosmeticEntities();
/* */
/* */
/* 145 */ this.packModule = new ResourcePackPollingModule(this);
/* 146 */ this.packModule.init();
/* 147 */ RankPollingModule rankPollingModule = new RankPollingModule(this);
/* 148 */ rankPollingModule.init();
/* */
/* 150 */ getLogger().info("Using operation mode '%s'!".formatted(new Object[] { this.config.mode() }));
/* */
/* 152 */ registerEvents((Listener)new CosmeticsListener(this));
/* 153 */ registerEvents((Listener)new ResourcePackListener(this.packModule));
/* 154 */ registerEvents((Listener)new DeathListener(this));
/* 155 */ registerEvents((Listener)new LeashListener());
/* 156 */ registerEvents((Listener)new CosmeticsTeleportListener(this));
/* 157 */ registerEvents((Listener)new CosmeticEntityListener());
/* 158 */ registerEvents((Listener)new CosmeticItemListener());
/* 159 */ registerEvents((Listener)new TrinketListener());
/* 160 */ registerEvents((Listener)new EmojiListener(this));
/* 161 */ registerEvents((Listener)this.resourcePackManager);
/* 162 */ registerEvents((Listener)this.entityHandler);
/* */
/* */
/* 165 */ registerEvents((Listener)this.visibilityHandler);
/* */
/* */
/* 168 */ registerEvents((Listener)new IceStaffListener());
/* 169 */ registerEvents((Listener)new InteractableListener());
/* */
/* */
/* 172 */ (new MenuCommand()).register((Plugin)this);
/* 173 */ (new EquipCommand((Plugin)this, this.manager)).register((Plugin)this);
/* 174 */ (new Debug()).register((Plugin)this);
/* */ }
/* */
/* */ private void registerEvents(Listener listener) {
/* 178 */ getServer().getPluginManager().registerEvents(listener, (Plugin)this);
/* */ }
/* */
/* */ private Gson buildGson() {
/* 182 */ GsonBuilder builder = new GsonBuilder();
/* 183 */ builder.registerTypeAdapter(TextColor.class, (element, type, context) -> {
/* */ try {
/* */ return (TextColor)NamedTextColor.NAMES.value(element.getAsJsonPrimitive().getAsString().toLowerCase(Locale.ROOT));
/* 186 */ } catch (IllegalArgumentException ex) {
/* */ return (TextColor)NamedTextColor.WHITE;
/* */ }
/* */ });
/* */
/* 191 */ builder.registerTypeAdapter(CosmeticState.class, (element, type, context) -> {
/* */ CosmeticState state = new CosmeticState();
/* */
/* */ try {
/* */ JsonObject obj = element.getAsJsonObject();
/* */
/* */ for (CosmeticSlot slot : CosmeticSlot.values()) {
/* */ JsonElement idElement = obj.get(slot.name());
/* */ if (idElement != null) {
/* */ Cosmetic cosmetic = Cosmetic.fromQualifiedId(idElement.getAsString()).orElse(null);
/* */ state.set(slot, cosmetic);
/* */ }
/* */ }
/* 204 */ } catch (IllegalArgumentException illegalArgumentException) {}
/* */
/* */
/* */ return state;
/* */ });
/* */
/* */
/* 211 */ builder.registerTypeAdapter(CosmeticState.class, (element, type, context) -> {
/* */ JsonObject obj = new JsonObject();
/* */
/* */ for (CosmeticSlot slot : CosmeticSlot.values()) {
/* */ Cosmetic cosmetic = element.get(slot);
/* */
/* */ obj.addProperty(slot.name(), (cosmetic == null) ? "EMPTY" : cosmetic.getQualifiedId());
/* */ }
/* */ return (JsonElement)obj;
/* */ });
/* 221 */ return builder.create();
/* */ }
/* */
/* */ public LocalStorageManager localStorage() {
/* 225 */ if (Mode.PLAYER_SERVER != config().mode()) {
/* 226 */ throw new IllegalStateException("Must be in player server mode to access local storage");
/* */ }
/* 228 */ return this.localStorage;
/* */ }
/* */
/* */ public CosmeticsManager manager() {
/* 232 */ return this.manager;
/* */ }
/* */
/* */ public Config config() {
/* 236 */ return this.config;
/* */ }
/* */
/* */ public NetworkApi networkApi() {
/* 240 */ return this.api;
/* */ }
/* */
/* */ public PluginApi getPluginApi() {
/* 244 */ return this.pluginApi;
/* */ }
/* */
/* */ public CratesModule crates() {
/* 248 */ return this.crates;
/* */ }
/* */
/* */ public EntityHandler entityHandler() {
/* 252 */ return this.entityHandler;
/* */ }
/* */
/* */ public ResourcePackPollingModule packModule() {
/* 256 */ return this.packModule;
/* */ }
/* */
/* */ public VisibilityHandler visibilityHandler() {
/* 260 */ return this.visibilityHandler;
/* */ }
/* */
/* */ public static Mode mode() {
/* 264 */ return get().config().mode();
/* */ }
/* */
/* */
/* */
/* */
/* */ private void removeCosmeticEntities() {
/* 271 */ Bukkit.getWorlds().forEach(world -> world.getEntities().forEach(()));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public ResourcePackManager resourcePackManager() {
/* 280 */ return this.resourcePackManager;
/* */ }
/* */
/* */ public static Cosmetics get() {
/* 284 */ return (Cosmetics)JavaPlugin.getPlugin(Cosmetics.class);
/* */ }
/* */
/* */ public InteractableBehaviorBridge getInteractableBridge() {
/* 288 */ return this.behaviorBridge;
/* */ }
/* */
/* */ public void setInteractableBridge(InteractableBehaviorBridge behaviorBridge) {
/* 292 */ this.behaviorBridge = behaviorBridge;
/* */ }
/* */ @Nullable
/* */ public CosmeticUIBridge getUiBridge() {
/* 296 */ return this.uiBridge;
/* */ }
/* */
/* */ public void setUiBridge(@Nullable CosmeticUIBridge uiBridge) {
/* 300 */ this.uiBridge = uiBridge;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\Cosmetics.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,15 @@
package com.minehut.cosmetics.api;
import org.bukkit.entity.Player;
public interface CosmeticUIBridge {
void openCosmeticMenu(Player paramPlayer);
void openCosmeticShop(Player paramPlayer);
}
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\api\CosmeticUIBridge.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,22 @@
package com.minehut.cosmetics.api;
import com.minehut.cosmetics.cosmetics.Cosmetic;
import com.minehut.cosmetics.cosmetics.CosmeticSupplier;
import java.util.function.Consumer;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.Nullable;
public interface InteractableBehaviorBridge {
@Nullable
Consumer<Player> cosmeticBehavior(CosmeticSupplier<?> paramCosmeticSupplier);
float mutateCooldown(Player paramPlayer, float paramFloat);
boolean hasPermissionOverride(Player paramPlayer, Cosmetic paramCosmetic);
}
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\api\InteractableBehaviorBridge.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
+79
View File
@@ -0,0 +1,79 @@
/* */ package com.minehut.cosmetics.api;
/* */
/* */ import com.minehut.cosmetics.Cosmetics;
/* */ import com.minehut.cosmetics.config.Mode;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticSupplier;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticsManager;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.properties.CosmeticSlot;
/* */ import com.minehut.cosmetics.util.messaging.Message;
/* */ import java.util.List;
/* */ import java.util.concurrent.CompletableFuture;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.plugin.Plugin;
/* */
/* */ public class PluginApi
/* */ {
/* */ private final Cosmetics cosmetics;
/* */
/* */ public PluginApi(Cosmetics cosmetics) {
/* 22 */ this.cosmetics = cosmetics;
/* */ }
/* */
/* */
/* */
/* */ public void equip(Player player, Cosmetic cosmetic, CosmeticSlot slot, boolean checkPermission, boolean persist) {
/* 28 */ if (!List.<Mode>of(Mode.LOBBY, Mode.SMP).contains(Cosmetics.mode())) {
/* */ return;
/* */ }
/* */
/* 32 */ CosmeticsManager manager = this.cosmetics.manager();
/* 33 */ if (checkPermission) {
/* */
/* 35 */ Permission.any(new Permission[] { Permission.staff(), cosmetic.permission() }).hasAccess(player).thenAccept(permission -> {
/* */ if (Boolean.FALSE.equals(permission)) {
/* */ player.sendMessage(Message.error("You do not have this cosmetic unlocked."));
/* */
/* */ return;
/* */ }
/* */
/* */ Bukkit.getScheduler().runTask((Plugin)Cosmetics.get(), ());
/* */
/* */ if (persist) {
/* */ manager.updateEquipment(player.getUniqueId());
/* */ }
/* */ });
/* */
/* */ return;
/* */ }
/* 51 */ manager.applyCosmetic(player.getUniqueId(), slot, cosmetic);
/* 52 */ if (persist) {
/* 53 */ manager.updateEquipment(player.getUniqueId());
/* */ }
/* */ }
/* */
/* */ public void unequip(Player player, CosmeticSlot slot, boolean persist) {
/* 58 */ if (!List.<Mode>of(Mode.LOBBY, Mode.SMP).contains(Cosmetics.mode())) {
/* */ return;
/* */ }
/* */
/* 62 */ CosmeticsManager manager = this.cosmetics.manager();
/* 63 */ manager.removeCosmetic(player.getUniqueId(), slot, persist);
/* */ }
/* */
/* */ public CompletableFuture<Boolean> ownsCosmetic(Player player, CosmeticSupplier<? extends Cosmetic> supplier) {
/* 67 */ if (!List.<Mode>of(Mode.LOBBY, Mode.SMP).contains(Cosmetics.mode())) {
/* 68 */ return CompletableFuture.completedFuture(Boolean.valueOf(false));
/* */ }
/* */
/* 71 */ return Permission.hasPurchased(supplier.get()).hasAccess(player);
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\api\PluginApi.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,33 @@
/* */ package com.minehut.cosmetics.commands;
/* */
/* */ import java.util.List;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.command.defaults.BukkitCommand;
/* */ import org.bukkit.plugin.Plugin;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public abstract class Command
/* */ extends BukkitCommand
/* */ {
/* */ protected Command(@NotNull String name) {
/* 13 */ super(name);
/* */ }
/* */
/* */
/* */ public boolean execute(@NotNull CommandSender sender, @NotNull String commandLabel, @NotNull String[] args) {
/* 18 */ execute(sender, commandLabel, List.of(args));
/* 19 */ return true;
/* */ }
/* */
/* */ public abstract void execute(@NotNull CommandSender paramCommandSender, @NotNull String paramString, @NotNull List<String> paramList);
/* */
/* */ public void register(Plugin plugin) {
/* 25 */ plugin.getServer().getCommandMap().register(plugin.getName(), (org.bukkit.command.Command)this);
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\Command.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,77 @@
/* */ package com.minehut.cosmetics.commands;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticCategory;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticsManager;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.properties.CosmeticSlot;
/* */ import com.minehut.cosmetics.util.EnumUtil;
/* */ import com.minehut.cosmetics.util.messaging.Message;
/* */ import java.util.List;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.plugin.Plugin;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class EquipCommand
/* */ extends Command
/* */ {
/* */ private final CosmeticsManager manager;
/* */ private final Plugin plugin;
/* */
/* */ public EquipCommand(Plugin plugin, CosmeticsManager cosmeticsManager) {
/* 25 */ super("equipcosmetic");
/* 26 */ setDescription("Equips a given cosmetic");
/* */
/* 28 */ this.plugin = plugin;
/* 29 */ this.manager = cosmeticsManager;
/* */ }
/* */
/* */ public void execute(@NotNull CommandSender sender, @NotNull String command, @NotNull List<String> args) {
/* */ Player player;
/* 34 */ if (sender instanceof Player) { player = (Player)sender; }
/* 35 */ else { sender.sendMessage(Message.error((Component)Component.text("You must be a player to use this command.")));
/* */
/* */ return; }
/* */
/* 39 */ if (args.size() < 3) {
/* 40 */ player.sendMessage(Message.info("Usage: [category] [cosmetic id] [slot]"));
/* */
/* */ return;
/* */ }
/* 44 */ CosmeticCategory category = EnumUtil.valueOfSafe(CosmeticCategory.class, args.get(0)).orElse(null);
/* 45 */ if (category == null) {
/* 46 */ player.sendMessage(Message.error("Invalid category"));
/* */
/* */ return;
/* */ }
/* 50 */ Cosmetic cosmetic = category.cosmetic(args.get(1)).orElse(null);
/* 51 */ if (cosmetic == null) {
/* 52 */ player.sendMessage(Message.error("Invalid cosmetic id."));
/* */
/* */ return;
/* */ }
/* 56 */ CosmeticSlot slot = EnumUtil.valueOfSafe(CosmeticSlot.class, args.get(2)).orElse(null);
/* 57 */ if (slot == null) {
/* 58 */ player.sendMessage(Message.error("Invalid slot specified."));
/* */
/* */ return;
/* */ }
/* */
/* 63 */ Permission.any(new Permission[] { Permission.staff(), cosmetic.permission() }).hasAccess(player).thenAccept(permission -> {
/* */ if (Boolean.FALSE.equals(permission)) {
/* */ player.sendMessage(Message.error("You do not have this cosmetic unlocked."));
/* */ return;
/* */ }
/* */ Bukkit.getScheduler().runTask(this.plugin, ());
/* */ });
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\EquipCommand.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,41 @@
/* */ package com.minehut.cosmetics.commands;
/* */
/* */ import com.minehut.cosmetics.Cosmetics;
/* */ import com.minehut.cosmetics.api.CosmeticUIBridge;
/* */ import com.minehut.cosmetics.cosmetics.ui.CosmeticMenu;
/* */ import com.minehut.cosmetics.util.messaging.Message;
/* */ import java.util.List;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.entity.Player;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class MenuCommand
/* */ extends Command {
/* */ public MenuCommand() {
/* 16 */ super("cosmetics");
/* */
/* 18 */ setDescription("Opens the cosmetics menu.");
/* */ }
/* */
/* */ public void execute(@NotNull CommandSender sender, @NotNull String command, @NotNull List<String> args) {
/* */ Player player;
/* 23 */ if (sender instanceof Player) { player = (Player)sender; }
/* 24 */ else { sender.sendMessage(Message.error((Component)Component.text("You must be a player to use this command.")));
/* */
/* */ return; }
/* */
/* 28 */ CosmeticUIBridge bridge = Cosmetics.get().getUiBridge();
/* 29 */ if (bridge != null) {
/* 30 */ bridge.openCosmeticMenu(player);
/* */ return;
/* */ }
/* 33 */ (new CosmeticMenu(player)).openTo(player);
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\MenuCommand.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,35 @@
/* */ package com.minehut.cosmetics.commands;
/* */
/* */ import com.minehut.cosmetics.Cosmetics;
/* */ import com.minehut.cosmetics.cosmetics.ui.impl.category.SkinMenu;
/* */ import com.minehut.cosmetics.util.messaging.Message;
/* */ import java.util.List;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.entity.Player;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class SkinCommand
/* */ extends Command
/* */ {
/* */ public SkinCommand(Cosmetics cosmetics) {
/* 16 */ super("skin");
/* 17 */ setDescription("Opens the skin menu for the held item");
/* */ }
/* */
/* */ public void execute(@NotNull CommandSender sender, @NotNull String command, @NotNull List<String> args) {
/* */ Player player;
/* 22 */ if (sender instanceof Player) { player = (Player)sender; }
/* 23 */ else { sender.sendMessage(Message.error((Component)Component.text("You must be a player to use this command.")));
/* */
/* */ return; }
/* */
/* 27 */ SkinMenu.open(player, player.getInventory().getItemInMainHand());
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\SkinCommand.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,45 @@
/* */ package com.minehut.cosmetics.commands;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.properties.Skinnable;
/* */ import com.minehut.cosmetics.util.CosmeticUtil;
/* */ import com.minehut.cosmetics.util.messaging.Message;
/* */ import java.util.List;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class UnSkinCommand extends Command {
/* */ public UnSkinCommand() {
/* 15 */ super("unskin");
/* 16 */ setDescription("Removed the skin for the held item");
/* */ }
/* */
/* */ public void execute(@NotNull CommandSender sender, @NotNull String command, @NotNull List<String> args) {
/* */ Player player;
/* 21 */ if (sender instanceof Player) { player = (Player)sender; }
/* 22 */ else { sender.sendMessage(Message.error("You must be a player to use this command."));
/* */
/* */ return; }
/* */
/* */
/* 27 */ ItemStack item = player.getInventory().getItemInMainHand();
/* 28 */ CosmeticUtil.readCosmetic(item).ifPresentOrElse(cosmetic -> {
/* */ Skinnable skinnable;
/* */ if (cosmetic instanceof Skinnable) {
/* */ skinnable = (Skinnable)cosmetic;
/* */ } else {
/* */ return;
/* */ }
/* */ skinnable.removeSkin(item);
/* */ player.sendMessage(Message.info("Removed item skin"));
/* */ }() -> player.sendMessage(Message.error("Unable to remove a skin from this item.")));
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\UnSkinCommand.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,29 @@
/* */ package com.minehut.cosmetics.commands.crates;
/* */
/* */ import com.minehut.cosmetics.commands.Command;
/* */ import com.minehut.cosmetics.cosmetics.ui.impl.crates.CrateMenu;
/* */ import java.util.List;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.entity.Player;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CrateCommand
/* */ extends Command {
/* */ public CrateCommand() {
/* 13 */ super("crates");
/* */ }
/* */
/* */ public void execute(@NotNull CommandSender sender, @NotNull String command, @NotNull List<String> args) {
/* */ Player player;
/* 18 */ if (sender instanceof Player) { player = (Player)sender; }
/* */ else
/* */ { return; }
/* 21 */ CrateMenu.open(player);
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\crates\CrateCommand.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,60 @@
/* */ package com.minehut.cosmetics.commands.debug;
/* */
/* */ import com.minehut.cosmetics.Cosmetics;
/* */ import com.minehut.cosmetics.commands.Command;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticSupplier;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.crates.Crate;
/* */ import com.minehut.cosmetics.cosmetics.crates.CrateType;
/* */ import com.minehut.cosmetics.util.EnumUtil;
/* */ import com.minehut.cosmetics.util.messaging.Message;
/* */ import com.minehut.cosmetics.util.structures.Pair;
/* */ import java.util.List;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.plugin.Plugin;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Debug
/* */ extends Command {
/* */ public Debug() {
/* 23 */ super("debugcosmetics");
/* */ }
/* */
/* */ public void execute(@NotNull CommandSender sender, @NotNull String command, @NotNull List<String> args) {
/* */ Player player;
/* 28 */ if (sender instanceof Player) { player = (Player)sender; }
/* 29 */ else { sender.sendMessage(Message.error("You must be a player to use this command."));
/* */
/* */ return; }
/* */
/* 33 */ if (args.size() < 1) {
/* 34 */ player.sendMessage(Message.error("You must supply an argument."));
/* */
/* */ return;
/* */ }
/* 38 */ Permission.admin().hasAccess(player).thenAccept(isStaff -> {
/* */ if (!isStaff.booleanValue()) {
/* */ player.sendMessage(Message.error("Only staff can run this command."));
/* */ return;
/* */ }
/* */ switch ((String)args.get(0)) {
/* */ case "open-crate":
/* */ if (args.size() < 2) {
/* */ player.sendMessage(Message.error("You must supply a crate name."));
/* */ return;
/* */ }
/* */ EnumUtil.valueOfSafe(CrateType.class, args.get(1)).ifPresent(());
/* */ break;
/* */ }
/* */ });
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\debug\Debug.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,86 @@
/* */ package com.minehut.cosmetics.commands.debug;
/* */
/* */ import com.destroystokyo.paper.profile.PlayerProfile;
/* */ import com.minehut.cosmetics.Cosmetics;
/* */ import com.minehut.cosmetics.commands.Command;
/* */ import com.minehut.cosmetics.config.Mode;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.model.profile.CosmeticData;
/* */ import com.minehut.cosmetics.model.profile.CosmeticMeta;
/* */ import com.minehut.cosmetics.model.request.UnlockCosmeticRequest;
/* */ import com.minehut.cosmetics.util.messaging.Message;
/* */ import java.util.List;
/* */ import java.util.UUID;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.plugin.Plugin;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class GiveCosmetic extends Command {
/* */ public GiveCosmetic() {
/* 22 */ super("givecosmetic");
/* */ }
/* */
/* */ public void execute(@NotNull CommandSender sender, @NotNull String command, @NotNull List<String> args) {
/* */ Player player;
/* 27 */ if (sender instanceof Player) { player = (Player)sender; }
/* */ else
/* */ { return; }
/* */
/* 31 */ if (!List.<Mode>of(Mode.LOBBY, Mode.SMP).contains(Cosmetics.mode())) {
/* */ return;
/* */ }
/* */
/* 35 */ if (!sender.hasPermission("minehut.rank.admin")) {
/* 36 */ player.sendMessage(Message.error("You do not have access to this command"));
/* */
/* */ return;
/* */ }
/* 40 */ if (args.size() < 4) {
/* 41 */ player.sendMessage(Message.info("/givecosmetic <player> <category> <id> <amount>"));
/* */
/* */ return;
/* */ }
/* 45 */ String targetArg = args.get(0);
/* */
/* 47 */ Bukkit.getScheduler().runTaskAsynchronously((Plugin)Cosmetics.get(), () -> {
/* */ UUID uuid;
/* */
/* */ boolean staff = ((Boolean)Permission.admin().hasAccess(player).join()).booleanValue();
/* */ if (!staff) {
/* */ return;
/* */ }
/* */ try {
/* */ uuid = UUID.fromString(targetArg);
/* 56 */ } catch (IllegalArgumentException e) {
/* */ Player target = Bukkit.getPlayer(targetArg);
/* */ if (target == null) {
/* */ PlayerProfile profile = Bukkit.createProfileExact(null, targetArg);
/* */ profile.complete();
/* */ if (profile.getId() == null) {
/* */ player.sendMessage(Message.error("Could not find player"));
/* */ return;
/* */ }
/* */ uuid = profile.getId();
/* */ } else {
/* */ uuid = target.getUniqueId();
/* */ }
/* */ }
/* */ String category = args.get(1);
/* */ String id = args.get(2);
/* */ int amount = Integer.parseInt(args.get(3));
/* */ CosmeticMeta meta = new CosmeticMeta(amount);
/* */ CosmeticData data = new CosmeticData(category, id, meta);
/* */ UnlockCosmeticRequest req = new UnlockCosmeticRequest(uuid, data);
/* */ Cosmetics.get().networkApi().unlockCosmetic(req).join();
/* */ player.sendMessage(Message.info("Gave cosmetic."));
/* */ });
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\debug\GiveCosmetic.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,91 @@
/* */ package com.minehut.cosmetics.commands.smp;
/* */ import com.minehut.cosmetics.Cosmetics;
/* */ import com.minehut.cosmetics.commands.Command;
/* */ import com.minehut.cosmetics.cosmetics.ui.CrateKeysShopTelemetry;
/* */ import com.minehut.cosmetics.cosmetics.ui.impl.smp.CommandConfirmPurchase;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import java.util.List;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.command.CommandSender;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.plugin.Plugin;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class SmpCrateKeyCommand extends Command {
/* 20 */ private static final boolean SMP = (System.getenv("SMP_SERVER_TYPE") != null);
/* */ private final Cosmetics plugin;
/* */
/* */ public SmpCrateKeyCommand(Cosmetics plugin) {
/* 24 */ super("smpcratekey");
/* 25 */ this.plugin = plugin;
/* */ }
/* */ public void execute(@NotNull CommandSender sender, @NotNull String command, @NotNull List<String> args) {
/* */ Player player;
/* */ TextComponent textComponent3, textComponent2, textComponent1;
/* 30 */ if (SMP && sender instanceof Player) { player = (Player)sender; }
/* */ else
/* */ { return; }
/* 33 */ if (args.isEmpty()) {
/* 34 */ player.sendMessage(Message.error("You must supply an argument."));
/* */ return;
/* */ }
/* 37 */ String type = args.get(0);
/* 38 */ CrateKeysShopTelemetry.shopOpened(player);
/* 39 */ CrateKeysShopTelemetry.keySelected(player, type);
/* 40 */ switch (type) {
/* */ case "basic":
/* 42 */ textComponent3 = Component.text("Basic Crate Key", (TextColor)NamedTextColor.DARK_AQUA);
/* 43 */ (new CommandConfirmPurchase((Component)textComponent3,
/* */
/* 45 */ ItemBuilder.of(Material.IRON_INGOT).display((Component)textComponent3).build(), p -> p.getServer().getScheduler().scheduleSyncDelayedTask((Plugin)this.plugin, ()), 100, "basic"))
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 53 */ .openTo(player);
/* */ break;
/* */ case "utility":
/* 56 */ textComponent2 = Component.text("Utility Crate Key", (TextColor)NamedTextColor.BLUE);
/* 57 */ (new CommandConfirmPurchase((Component)textComponent2,
/* */
/* 59 */ ItemBuilder.of(Material.DIAMOND).display((Component)textComponent2).build(), p -> p.getServer().getScheduler().scheduleSyncDelayedTask((Plugin)this.plugin, ()), 300, "utility"))
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 67 */ .openTo(player);
/* */ break;
/* */ case "gear":
/* 70 */ textComponent1 = Component.text("Gear Crate Key", (TextColor)NamedTextColor.AQUA);
/* 71 */ (new CommandConfirmPurchase((Component)textComponent1,
/* */
/* 73 */ ItemBuilder.of(Material.NETHERITE_SCRAP).display((Component)textComponent1).build(), p -> p.getServer().getScheduler().scheduleSyncDelayedTask((Plugin)this.plugin, ()), 500, "gear"))
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 81 */ .openTo(player);
/* */ break;
/* */ }
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\commands\smp\SmpCrateKeyCommand.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,7 @@
/* */ package com.minehut.cosmetics.config;
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\config\Config$1.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
+118
View File
@@ -0,0 +1,118 @@
/* */ package com.minehut.cosmetics.config;
/* */
/* */ import com.minehut.cosmetics.util.EnumUtil;
/* */ import java.io.File;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.Location;
/* */ import org.bukkit.World;
/* */ import org.bukkit.configuration.file.FileConfiguration;
/* */ import org.bukkit.configuration.file.YamlConfiguration;
/* */ import org.bukkit.plugin.Plugin;
/* */
/* */
/* */ public class Config
/* */ {
/* */ private String apiUrl;
/* */ private String apiSecret;
/* */ private Mode mode;
/* 18 */ private Location crateLocation = null;
/* */
/* */ private boolean hideEntitiesWithoutPack = true;
/* */
/* */ private boolean sendResourcePack = true;
/* */ private boolean tabCompletionForEmojis = false;
/* */ private boolean cosmeticsHaveDurability = true;
/* */ private final Plugin plugin;
/* */
/* */ public Config(Plugin plugin) {
/* 28 */ this.plugin = plugin;
/* 29 */ plugin.saveDefaultConfig();
/* 30 */ reload(); } public void load() { YamlConfiguration lobbyConfig;
/* */ World world;
/* */ double x, y, z;
/* */ float yaw;
/* 34 */ FileConfiguration pluginConfig = this.plugin.getConfig();
/* */
/* */
/* 37 */ this.mode = EnumUtil.valueOfSafe(Mode.class, pluginConfig.getString("mode")).orElse(Mode.PLAYER_SERVER);
/* 38 */ this.hideEntitiesWithoutPack = pluginConfig.getBoolean("hide-entities-without-pack", false);
/* 39 */ this.sendResourcePack = pluginConfig.getBoolean("send-resource-pack", true);
/* 40 */ this.tabCompletionForEmojis = pluginConfig.getBoolean("tab-completion-for-emojis", false);
/* 41 */ this.cosmeticsHaveDurability = pluginConfig.getBoolean("cosmetics-have-durability", true);
/* */
/* 43 */ switch (this.mode) {
/* */ case LOBBY:
/* */ case SMP:
/* 46 */ lobbyConfig = YamlConfiguration.loadConfiguration(new File(this.plugin.getDataFolder().getParent(), "Lobby/socketauth.yml"));
/* 47 */ this.apiUrl = lobbyConfig.getString("api.url", "https://api.minehut.com");
/* 48 */ this.apiSecret = lobbyConfig.getString("api.auth", "nicetry");
/* */
/* 50 */ world = Bukkit.getWorld(pluginConfig.getString("crateLocation.name", "lobby"));
/* 51 */ x = pluginConfig.getDouble("crateLocation.x", 0.0D);
/* 52 */ y = pluginConfig.getDouble("crateLocation.y", 0.0D);
/* 53 */ z = pluginConfig.getDouble("crateLocation.z", 0.0D);
/* 54 */ yaw = (float)pluginConfig.getDouble("crateLocation.yaw", 0.0D);
/* */
/* 56 */ this.crateLocation = new Location(world, x, y, z, yaw, 0.0F);
/* */ break;
/* */ case PLAYER_SERVER:
/* 59 */ this.apiUrl = pluginConfig.getString("apiUrl", "https://api.minehut.com");
/* */ break;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Mode mode() {
/* 71 */ return this.mode;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String apiUrl() {
/* 80 */ return this.apiUrl;
/* */ }
/* */
/* */ public String apiSecret() {
/* 84 */ return this.apiSecret;
/* */ }
/* */
/* */ public Location crateLocation() {
/* 88 */ return this.crateLocation;
/* */ }
/* */
/* */
/* */ public boolean hideEntitiesWithoutPack() {
/* 93 */ return this.hideEntitiesWithoutPack;
/* */ }
/* */
/* */ public boolean sendResourcePack() {
/* 97 */ return this.sendResourcePack;
/* */ }
/* */
/* */ public boolean isTabCompletionForEmojis() {
/* 101 */ return this.tabCompletionForEmojis;
/* */ }
/* */
/* */ public boolean cosmeticsHaveDurability() {
/* 105 */ return this.cosmeticsHaveDurability;
/* */ }
/* */
/* */ public void reload() {
/* 109 */ this.plugin.reloadConfig();
/* 110 */ load();
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\config\Config.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
+17
View File
@@ -0,0 +1,17 @@
/* */ package com.minehut.cosmetics.config;
/* */
/* */
/* */
/* */
/* */ public enum Mode
/* */ {
/* 8 */ LOBBY,
/* 9 */ SMP,
/* 10 */ PLAYER_SERVER;
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\config\Mode.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,112 @@
/* */ package com.minehut.cosmetics.cosmetics;
/* */
/* */ import java.util.List;
/* */ import java.util.Set;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import net.kyori.adventure.text.minimessage.MiniMessage;
/* */
/* */ public enum Collection {
/* 13 */ DEV(((TextComponent)Component.text("Developer").color((TextColor)NamedTextColor.RED)).decoration(TextDecoration.ITALIC, false)),
/* 14 */ BETA(((TextComponent)Component.text("Minehut Beta Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 15 */ FALL_22(((TextComponent)Component.text("Autumn 2022 Collection").color((TextColor)NamedTextColor.GOLD)).decoration(TextDecoration.ITALIC, false)),
/* 16 */ SPOOKY_22(((TextComponent)Component.text("Spooktacular 2022 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 17 */ MAID(((TextComponent)Component.text("Maids of Minehut").color(TextColor.color(255, 182, 193))).decoration(TextDecoration.ITALIC, false)),
/* 18 */ CRUSADER(((TextComponent)Component.text("Minehut Crusaders Collection").color(TextColor.color(238, 232, 170))).decoration(TextDecoration.ITALIC, false)),
/* 19 */ GENERAL(((TextComponent)Component.text("General Cosmetics Collection").color((TextColor)NamedTextColor.GRAY)).decoration(TextDecoration.ITALIC, false)),
/* 20 */ DRAGON_CRATE(((TextComponent)Component.text("Minehut Dragon Crate").color((TextColor)NamedTextColor.GOLD)).decoration(TextDecoration.ITALIC, false)),
/* 21 */ WENDELL_AND_WILD(((TextComponent)Component.text("From the Netflix Original Film Wendell & Wild").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 22 */ ICE(((TextComponent)Component.text("Ice Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 23 */ WINTER_2023(((TextComponent)Component.text("Winter 2023 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 24 */ NINJA(((TextComponent)Component.text("Ninja Collection").color((TextColor)NamedTextColor.RED)).decoration(TextDecoration.ITALIC, false)),
/* 25 */ ARCADE(((TextComponent)Component.text("Arcade Collection").color((TextColor)NamedTextColor.LIGHT_PURPLE)).decoration(TextDecoration.ITALIC, false)),
/* 26 */ ROYAL(((TextComponent)Component.text("Royal Collection").color((TextColor)NamedTextColor.GOLD)).decoration(TextDecoration.ITALIC, false)),
/* 27 */ VALENTINES_2023(((TextComponent)Component.text("Valentine's 2023 Collection").color(TextColor.color(255, 182, 193))).decoration(TextDecoration.ITALIC, false)),
/* 28 */ CHEESE_HEADS(Component.text("Cheese Heads", (TextColor)NamedTextColor.YELLOW).decoration(TextDecoration.ITALIC, false)),
/* 29 */ NICK_ARCHERY_SEASON_1(Component.text("Earned from Nickelodeon Slime Blast 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 30 */ List.of(Component.text("Season 1 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 31 */ NICK_GOLF_SEASON_1(Component.text("Earned from Nickelodeon Golf 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 32 */ List.of(Component.text("Season 1 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 33 */ NICK_ESCAPE_SEASON_1(Component.text("Earned from Nickelodeon Escape 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 34 */ List.of(Component.text("Season 1 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 35 */ NICK_ARCHERY_SEASON_2(Component.text("Earned from Nickelodeon Slime Blast 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 36 */ List.of(Component.text("Season 2 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 37 */ NICK_GOLF_SEASON_2(Component.text("Earned from Nickelodeon Golf 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 38 */ List.of(Component.text("Season 2 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 39 */ NICK_ESCAPE_SEASON_2(Component.text("Earned from Nickelodeon Escape 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 40 */ List.of(Component.text("Season 2 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 41 */ NICK_ARCHERY_SEASON_3(Component.text("Earned from Nickelodeon Slime Blast 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 42 */ List.of(Component.text("Season 3 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 43 */ NICK_GOLF_SEASON_3(Component.text("Earned from Nickelodeon Golf 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 44 */ List.of(Component.text("Season 3 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 45 */ NICK_ESCAPE_SEASON_3(Component.text("Earned from Nickelodeon Escape 2023", (TextColor)NamedTextColor.GOLD).decoration(TextDecoration.ITALIC, false),
/* 46 */ List.of(Component.text("Season 3 Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 47 */ PRIDE_2024(MiniMessage.miniMessage().deserialize("<i><gold>Earned from <rainbow>Pride 2024</rainbow></gold></i>"),
/* 48 */ List.of(MiniMessage.miniMessage().deserialize("<i><rainbow>Pride 2024</rainbow></i>"))),
/* 49 */ CAT_DOG_DERBY_2024(((TextComponent)Component.text("Minehut Cat & Dog Derby 2024 Emojis").color((TextColor)NamedTextColor.GREEN)).decoration(TextDecoration.ITALIC, false)),
/* 50 */ LABOR_DAY_24(((TextComponent)Component.text("Labor Day 2024 Collection").color((TextColor)NamedTextColor.GRAY)).decoration(TextDecoration.ITALIC, false)),
/* 51 */ SPOOKY_24(((TextComponent)Component.text("Halloween 2024 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 52 */ SONIC_24(((TextComponent)Component.text("Sonic 3 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 53 */ GOLF(((TextComponent)Component.text("Minehut Golf Emojis").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 54 */ FRUITS(((TextComponent)Component.text("Fruit Islands Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 55 */ SPRING_BREAK_2025(((TextComponent)Component.text("Spring Break 2025 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 56 */ SPRING_2026(((TextComponent)Component.text("Spring 2026 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 57 */ MINEHUT_SPECIALS(((TextComponent)Component.text("Minehut Specials Collection").color((TextColor)NamedTextColor.GREEN)).decoration(TextDecoration.ITALIC, false)),
/* 58 */ SUMMER_2025(((TextComponent)Component.text("Summer 2025 Collection").color((TextColor)NamedTextColor.GOLD)).decoration(TextDecoration.ITALIC, false)),
/* 59 */ FATHERS_DAY_2025(((TextComponent)Component.text("Fathers Day Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 60 */ INDEPENDENCE_2025(((TextComponent)Component.text("July 4th - US Independence Day Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 61 */ SPOOKY_25(((TextComponent)Component.text("Halloween 2025 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 62 */ THANKSGIVING_25(((TextComponent)Component.text("Thanksgiving 2025 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 63 */ WINTER_2025(((TextComponent)Component.text("Winter 2025 Collection").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 64 */ VALENTINES_2026(((TextComponent)Component.text("Valentines 2025 Collection").color(TextColor.color(255, 182, 193))).decoration(TextDecoration.ITALIC, false)),
/* 65 */ CHINESE_NEW_YEARS_2026(((TextComponent)Component.text("Chinese New Years 2026").color((TextColor)NamedTextColor.RED)).decoration(TextDecoration.ITALIC, false)),
/* 66 */ EASTER_2026(((TextComponent)Component.text("Easter 2026").color((TextColor)NamedTextColor.AQUA)).decoration(TextDecoration.ITALIC, false)),
/* 67 */ SUMMER_2026(((TextComponent)Component.text("Summer 2026 Collection").color((TextColor)NamedTextColor.GOLD)).decoration(TextDecoration.ITALIC, false)),
/* 68 */ FRUIT_2026(((TextComponent)Component.text("Minehut Rewards Collection").color((TextColor)NamedTextColor.GOLD)).decoration(TextDecoration.ITALIC, false),
/* 69 */ List.of(Component.text("Minigame Reward", (TextColor)NamedTextColor.GREEN).decoration(TextDecoration.ITALIC, false))),
/* 70 */ HICHEW_2026(((TextComponent)Component.text("Hi-Chew Collection").color(TextColor.color(255, 105, 140))).decoration(TextDecoration.ITALIC, false));
/* */
/* */ private final Component tag;
/* */
/* */ private final List<Component> lore;
/* */
/* */ private static final Set<Collection> ACTIVE;
/* */
/* */
/* */ Collection(Component tag, List<Component> lore) {
/* 80 */ this.tag = tag;
/* 81 */ this.lore = lore;
/* */ }
/* */
/* */
/* */ public Component display() {
/* 86 */ return this.tag;
/* */ }
/* */
/* */ public List<Component> lore() {
/* 90 */ return this.lore;
/* */ }
/* */ static {
/* 93 */ ACTIVE = Set.of(GENERAL, MAID, DRAGON_CRATE, ICE, ARCADE, WINTER_2023, FRUIT_2026);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static boolean isActive(Collection collection) {
/* 104 */ return ACTIVE.contains(collection);
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\Collection.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,127 @@
/* */ package com.minehut.cosmetics.cosmetics;
/* */
/* */ import com.minehut.cosmetics.util.EnumUtil;
/* */ import java.util.Optional;
/* */ import java.util.UUID;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.OfflinePlayer;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public abstract class Cosmetic
/* */ {
/* */ protected UUID owner;
/* */ private final CosmeticCategory type;
/* */ private final String id;
/* */
/* */ protected Cosmetic(String id, CosmeticCategory type) {
/* 20 */ this.id = id;
/* 21 */ this.type = type;
/* */ }
/* */
/* */ public Permission permission() {
/* 25 */ return Permission.hasPurchasedBridgeBound(this);
/* */ }
/* */
/* */ public Permission visibility() {
/* 29 */ return Permission.collectionIsActive(collection());
/* */ }
/* */
/* */ public Optional<UUID> owner() {
/* 33 */ return Optional.ofNullable(this.owner);
/* */ }
/* */
/* */ public void owner(UUID owner) {
/* 37 */ this.owner = owner;
/* */ }
/* */
/* */ public Optional<Player> player() {
/* 41 */ return owner().<Player>map(Bukkit::getPlayer).filter(OfflinePlayer::isOnline);
/* */ }
/* */
/* */ public CosmeticCategory category() {
/* 45 */ return this.type;
/* */ }
/* */
/* */ public String id() {
/* 49 */ return this.id;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String getQualifiedId() {
/* 61 */ return category().name() + ":" + category().name();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 74 */ return Rarity.COMMON;
/* */ }
/* */
/* */ public boolean isEvent() {
/* 78 */ return false;
/* */ }
/* */
/* */ public int salvageAmount() {
/* 82 */ return rarity().salvageValue();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static Optional<Cosmetic> fromCategoryId(String category, String id) {
/* 95 */ return
/* 96 */ EnumUtil.valueOfSafe(CosmeticCategory.class, category.toUpperCase())
/* 97 */ .flatMap(cat -> cat.cosmetic(id.toUpperCase()));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static Optional<Cosmetic> fromQualifiedId(String query) {
/* 105 */ String[] chunks = query.split(":");
/* 106 */ if (chunks.length < 2) return Optional.empty();
/* */
/* 108 */ String category = chunks[0];
/* 109 */ String id = chunks[1];
/* */
/* 111 */ return fromCategoryId(category, id);
/* */ }
/* */
/* */ public abstract Component name();
/* */
/* */ @NotNull
/* */ public abstract ItemStack menuIcon();
/* */
/* */ @NotNull
/* */ public abstract Collection collection();
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\Cosmetic.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,60 @@
/* */ package com.minehut.cosmetics.cosmetics;
/* */
/* */ import com.minehut.cosmetics.cosmetics.crates.CrateType;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.Balloon;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.Emoji;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.trinket.Trinket;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.util.EnumUtil;
/* */ import java.util.Optional;
/* */ import java.util.function.Function;
/* */
/* */ public enum CosmeticCategory {
/* */ static {
/* 18 */ PARTICLE = new CosmeticCategory("PARTICLE", 0, "Particles", query -> EnumUtil.valueOfSafe(Particle.class, query).map(Particle::get), true);
/* 19 */ HAT = new CosmeticCategory("HAT", 1, "Hats", query -> EnumUtil.valueOfSafe(Hat.class, query).map(Hat::get), false);
/* 20 */ COMPANION = new CosmeticCategory("COMPANION", 2, "Companions", query -> EnumUtil.valueOfSafe(Companion.class, query).map(Companion::get), true);
/* 21 */ ITEM = new CosmeticCategory("ITEM", 3, "Items", query -> EnumUtil.valueOfSafe(Item.class, query).map(Item::get), false);
/* 22 */ BALLOON = new CosmeticCategory("BALLOON", 4, "Balloons", query -> EnumUtil.valueOfSafe(Balloon.class, query).map(Balloon::get), true);
/* 23 */ WING = new CosmeticCategory("WING", 5, "Backpacks", query -> EnumUtil.valueOfSafe(Wing.class, query).map(Wing::get), true);
/* 24 */ TRINKET = new CosmeticCategory("TRINKET", 6, "Trinkets", query -> EnumUtil.valueOfSafe(Trinket.class, query).map(Trinket::get), false);
/* 25 */ EMOJI = new CosmeticCategory("EMOJI", 7, "Emojis", query -> EnumUtil.valueOfSafe(Emoji.class, query).map(Emoji::get), false);
/* 26 */ CRATE = new CosmeticCategory("CRATE", 8, "Crates", query -> EnumUtil.valueOfSafe(CrateType.class, query).map(CrateType::get), false);
/* */ }
/* */
/* */
/* */ PARTICLE, HAT, COMPANION, ITEM, BALLOON, WING, TRINKET, EMOJI, CRATE;
/* */
/* */ private final String categoryName;
/* */
/* */ private final Function<String, Optional<Cosmetic>> getCosmetic;
/* */ private final boolean saveLocal;
/* */
/* */ CosmeticCategory(String categoryName, Function<String, Optional<Cosmetic>> getCosmetic, boolean saveLocal) {
/* 38 */ this.categoryName = categoryName;
/* 39 */ this.getCosmetic = getCosmetic;
/* 40 */ this.saveLocal = saveLocal;
/* */ }
/* */
/* */ public String categoryName() {
/* 44 */ return this.categoryName;
/* */ }
/* */
/* */ public Optional<Cosmetic> cosmetic(String query) {
/* 48 */ return this.getCosmetic.apply(query);
/* */ }
/* */
/* */ public boolean isSaveLocal() {
/* 52 */ return this.saveLocal;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\CosmeticCategory.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,11 @@
package com.minehut.cosmetics.cosmetics;
public interface CosmeticSupplier<T extends Cosmetic> {
T get();
}
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\CosmeticSupplier.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,10 @@
/* */ package com.minehut.cosmetics.cosmetics;
/* */
/* */ import com.minehut.cosmetics.config.Mode;
/* */
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\CosmeticsManager$1.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,342 @@
/* */ package com.minehut.cosmetics.cosmetics;
/* */
/* */ import com.google.common.cache.Cache;
/* */ import com.google.common.cache.CacheBuilder;
/* */ import com.minehut.cosmetics.Cosmetics;
/* */ import com.minehut.cosmetics.config.Mode;
/* */ import com.minehut.cosmetics.cosmetics.bindings.Bindings;
/* */ import com.minehut.cosmetics.cosmetics.bindings.CosmeticBindings;
/* */ import com.minehut.cosmetics.cosmetics.events.CosmeticUpdateEvent;
/* */ import com.minehut.cosmetics.cosmetics.properties.CosmeticSlot;
/* */ import com.minehut.cosmetics.cosmetics.properties.Equippable;
/* */ import com.minehut.cosmetics.cosmetics.properties.SlotHandler;
/* */ import com.minehut.cosmetics.cosmetics.properties.Tickable;
/* */ import com.minehut.cosmetics.model.profile.CosmeticProfileResponse;
/* */ import com.minehut.cosmetics.model.profile.LocalCosmeticProfile;
/* */ import com.minehut.cosmetics.model.profile.SimpleResponse;
/* */ import com.minehut.cosmetics.model.request.CosmeticState;
/* */ import com.minehut.cosmetics.model.request.EquipmentUpdateRequest;
/* */ import com.minehut.cosmetics.util.CosmeticUtil;
/* */ import com.minehut.cosmetics.util.messaging.Message;
/* */ import java.util.HashMap;
/* */ import java.util.List;
/* */ import java.util.Map;
/* */ import java.util.Optional;
/* */ import java.util.UUID;
/* */ import java.util.concurrent.CompletableFuture;
/* */ import java.util.concurrent.TimeUnit;
/* */ import kong.unirest.cosmetics.HttpResponse;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.block.BlockState;
/* */ import org.bukkit.block.ShulkerBox;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.inventory.Inventory;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.inventory.PlayerInventory;
/* */ import org.bukkit.inventory.meta.BlockStateMeta;
/* */ import org.bukkit.inventory.meta.BundleMeta;
/* */ import org.bukkit.inventory.meta.ItemMeta;
/* */ import org.bukkit.plugin.Plugin;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */
/* */ public class CosmeticsManager
/* */ {
/* 46 */ private final Cache<UUID, CosmeticProfileResponse> responseCache = CacheBuilder.newBuilder()
/* 47 */ .expireAfterWrite(3L, TimeUnit.SECONDS)
/* 48 */ .build();
/* */
/* */
/* */
/* */
/* 53 */ private final Map<UUID, CosmeticState> cache = new HashMap<>();
/* 54 */ private final CosmeticBindings bindings = new CosmeticBindings();
/* */
/* */ public CosmeticsManager() {
/* 57 */ Bukkit.getScheduler().runTaskTimer((Plugin)Cosmetics.get(), () -> this.cache.values().forEach(()), 0L, 1L);
/* */
/* */
/* */
/* */
/* */
/* 63 */ this.bindings.registerBinding(Bindings.ALL);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public CompletableFuture<Optional<CosmeticProfileResponse>> getProfile(UUID uuid) {
/* 74 */ CosmeticProfileResponse cached = (CosmeticProfileResponse)this.responseCache.getIfPresent(uuid);
/* 75 */ if (cached != null) {
/* 76 */ return CompletableFuture.completedFuture(Optional.of(cached));
/* */ }
/* */
/* 79 */ return CompletableFuture.supplyAsync(() -> {
/* */ HttpResponse<CosmeticProfileResponse> response = Cosmetics.get().networkApi().getProfile(uuid).join();
/* */ CosmeticProfileResponse profile = (CosmeticProfileResponse)response.getBody();
/* */ if (!List.<Mode>of(Mode.LOBBY, Mode.SMP).contains(Cosmetics.mode()) && profile != null) {
/* */ this.responseCache.put(uuid, profile);
/* */ }
/* */ return Optional.ofNullable(profile);
/* */ });
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void applyCosmetic(@NotNull UUID uuid, @NotNull CosmeticSlot slot, Cosmetic cosmetic) {
/* 100 */ getState(uuid).remove(slot);
/* 101 */ if (cosmetic != null) {
/* */
/* 103 */ cosmetic.owner(uuid);
/* */
/* */
/* 106 */ if (cosmetic instanceof SlotHandler) { SlotHandler slotHandler = (SlotHandler)cosmetic;
/* 107 */ slotHandler.setSlot(slot); }
/* */
/* */
/* */
/* 111 */ if (cosmetic instanceof Equippable) { Equippable equippable = (Equippable)cosmetic;
/* 112 */ equippable.equip(); }
/* */
/* */ }
/* 115 */ getState(uuid).set(slot, cosmetic);
/* */
/* 117 */ (new CosmeticUpdateEvent(uuid, slot, cosmetic)).callEvent();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void removeCosmetic(UUID uuid, CosmeticSlot slot, boolean updateMeta) {
/* 129 */ applyCosmetic(uuid, slot, null);
/* 130 */ (new CosmeticUpdateEvent(uuid, slot, null)).callEvent();
/* */
/* 132 */ if (updateMeta) {
/* 133 */ updateEquipment(uuid);
/* */ }
/* */ }
/* */
/* */
/* */ public void removeAllCosmetics(UUID uuid, boolean updateMeta) {
/* 139 */ for (CosmeticSlot slot : CosmeticSlot.values()) {
/* 140 */ removeCosmetic(uuid, slot, false);
/* */ }
/* */
/* 143 */ if (Cosmetics.mode() == Mode.SMP) {
/* */
/* 145 */ Player player = Bukkit.getPlayer(uuid);
/* 146 */ if (player != null) {
/* 147 */ PlayerInventory inventory = player.getInventory();
/* 148 */ for (ItemStack item : inventory.getContents()) {
/* 149 */ if (item != null) {
/* */
/* */
/* 152 */ ItemMeta meta = item.getItemMeta();
/* 153 */ if (meta instanceof BundleMeta) { BundleMeta bundle = (BundleMeta)meta;
/* 154 */ if (bundle.getItems().stream().anyMatch(i -> CosmeticUtil.readCosmetic(i).isPresent())) {
/* 155 */ bundle.setItems(List.of());
/* 156 */ item.setItemMeta((ItemMeta)bundle);
/* */ } }
/* 158 */ else if (meta instanceof BlockStateMeta) { BlockStateMeta blockState = (BlockStateMeta)meta; BlockState blockState1 = blockState.getBlockState(); if (blockState1 instanceof ShulkerBox) { ShulkerBox shulkerBox = (ShulkerBox)blockState1;
/* 159 */ Inventory shulkerBoxInventory = shulkerBox.getInventory();
/* 160 */ for (ItemStack i : shulkerBoxInventory.getContents()) {
/* 161 */ if (i != null && !CosmeticUtil.readCosmetic(item).isEmpty())
/* */ {
/* */
/* 164 */ shulkerBoxInventory.remove(i); }
/* */ }
/* 166 */ blockState.setBlockState((BlockState)shulkerBox);
/* 167 */ item.setItemMeta((ItemMeta)blockState); }
/* */ }
/* 169 */ if (!CosmeticUtil.readCosmetic(item).isEmpty())
/* */ {
/* */
/* 172 */ inventory.remove(item); }
/* */ }
/* 174 */ } if (CosmeticUtil.readCosmetic(inventory.getHelmet()).isPresent()) {
/* 175 */ inventory.setHelmet(null);
/* */ }
/* 177 */ if (CosmeticUtil.readCosmetic(inventory.getChestplate()).isPresent()) {
/* 178 */ inventory.setChestplate(null);
/* */ }
/* 180 */ if (CosmeticUtil.readCosmetic(inventory.getLeggings()).isPresent()) {
/* 181 */ inventory.setLeggings(null);
/* */ }
/* 183 */ if (CosmeticUtil.readCosmetic(inventory.getBoots()).isPresent()) {
/* 184 */ inventory.setBoots(null);
/* */ }
/* 186 */ if (CosmeticUtil.readCosmetic(inventory.getItemInOffHand()).isPresent()) {
/* 187 */ inventory.setItemInOffHand(null);
/* */ }
/* */ }
/* */ }
/* */
/* 192 */ if (updateMeta) {
/* 193 */ updateEquipment(uuid);
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void updateEquipment(UUID uuid) {
/* 203 */ EquipmentUpdateRequest request = new EquipmentUpdateRequest(uuid, getState(uuid));
/* 204 */ Bukkit.getScheduler().runTaskAsynchronously((Plugin)Cosmetics.get(), () -> {
/* */ HttpResponse<SimpleResponse> res = Cosmetics.get().networkApi().updateEquipment(request).join();
/* */ if (res == null) {
/* */ return;
/* */ }
/* */ Player player = Bukkit.getPlayer(request.getUuid());
/* */ if (player != null) {
/* */ switch (res.getStatus()) {
/* */ case 200:
/* */
/* */ case 429:
/* */
/* */ default:
/* */ break;
/* */ }
/* */ Component message = Message.error("Failed to update equipment");
/* */ player.sendActionBar(message);
/* */ }
/* */ });
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void handleConnect(UUID uuid) {
/* 233 */ Bukkit.getScheduler().runTaskAsynchronously((Plugin)Cosmetics.get(), () -> {
/* */ switch (Cosmetics.mode()) {
/* */ default:
/* */ throw new IncompatibleClassChangeError();
/* */ case LOBBY:
/* */ case SMP:
/* */
/* */ case PLAYER_SERVER:
/* */ break;
/* */ }
/* */ Optional<CosmeticState> maybeState = Optional.of(((LocalCosmeticProfile)Cosmetics.get().localStorage().loadProfile(uuid).join()).getEquipped());
/* */ CosmeticState state = maybeState.orElse(null);
/* */ if (state != null) {
/* */ Bukkit.getScheduler().runTaskLater((Plugin)Cosmetics.get(), (), (Mode.SMP == Cosmetics.mode()) ? 10L : 0L);
/* */ }
/* */ });
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void handleDisconnect(UUID uuid) {
/* 268 */ CosmeticState state = getState(uuid);
/* 269 */ removeAllCosmetics(uuid, false);
/* */
/* */
/* */
/* 273 */ if (Mode.PLAYER_SERVER == Cosmetics.mode()) {
/* 274 */ Cosmetics.get().localStorage().writeProfile(uuid, state);
/* */ }
/* */
/* 277 */ this.responseCache.invalidate(uuid);
/* */ }
/* */
/* */ public void unequipAll(UUID uuid) {
/* 281 */ getState(uuid).forEach((slot, cosmetic) -> {
/* */ if (cosmetic instanceof Equippable) {
/* */ Equippable equippable = (Equippable)cosmetic;
/* */ equippable.unequip();
/* */ }
/* */ });
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void equip(UUID uuid, CosmeticSlot slot) {
/* 296 */ getEquippedCosmetic(uuid, slot).ifPresent(cosmetic -> {
/* */ if (cosmetic instanceof Equippable) {
/* */ Equippable equippable = (Equippable)cosmetic;
/* */ equippable.equip();
/* */ }
/* */ });
/* */ }
/* */ public void equipAll(UUID uuid) {
/* 304 */ getState(uuid).forEach((slot, cosmetic) -> {
/* */ if (cosmetic instanceof Equippable) {
/* */ Equippable equippable = (Equippable)cosmetic;
/* */ equippable.equip();
/* */ }
/* */ });
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public CosmeticState getState(UUID uuid) {
/* 319 */ return this.cache.computeIfAbsent(uuid, ignored -> new CosmeticState());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Optional<Cosmetic> getEquippedCosmetic(UUID uuid, CosmeticSlot type) {
/* 330 */ return Optional.ofNullable(getState(uuid).get(type));
/* */ }
/* */
/* */ public CosmeticBindings getBindings() {
/* 334 */ return this.bindings;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\CosmeticsManager.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,215 @@
/* */ package com.minehut.cosmetics.cosmetics;
/* */
/* */ import com.minehut.cosmetics.Cosmetics;
/* */ import com.minehut.cosmetics.model.profile.CosmeticData;
/* */ import com.minehut.cosmetics.model.profile.CosmeticMeta;
/* */ import com.minehut.cosmetics.model.profile.CosmeticProfile;
/* */ import com.minehut.cosmetics.model.profile.CosmeticProfileResponse;
/* */ import com.minehut.cosmetics.model.rank.PlayerRank;
/* */ import java.util.ArrayList;
/* */ import java.util.List;
/* */ import java.util.Map;
/* */ import java.util.Optional;
/* */ import java.util.UUID;
/* */ import java.util.concurrent.CompletableFuture;
/* */ import org.bukkit.entity.Player;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public interface Permission
/* */ {
/* */ static Permission none() {
/* 32 */ return player -> CompletableFuture.completedFuture(Boolean.valueOf(true));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission deny() {
/* 41 */ return player -> CompletableFuture.completedFuture(Boolean.valueOf(false));
/* */ }
/* */
/* */ static Permission uuid(UUID uuid) {
/* 45 */ return player -> CompletableFuture.completedFuture(Boolean.valueOf(uuid.equals(player.getUniqueId())));
/* */ }
/* */
/* */
/* */ static Permission collectionIsActive(Collection collection) {
/* 50 */ return player -> CompletableFuture.completedFuture(Boolean.valueOf(Collection.isActive(collection)));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission hasRank(String name) {
/* 60 */ return player -> Cosmetics.get().manager().getProfile(player.getUniqueId()).thenApplyAsync(());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission staff() {
/* 77 */ return player -> hasRank("MOD").hasAccess(player);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission admin() {
/* 86 */ return player -> hasRank("ADMIN").hasAccess(player);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission hasPurchased(String category, String id) {
/* 97 */ return player -> Cosmetics.get().manager().getProfile(player.getUniqueId()).thenApplyAsync(());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission hasPurchased(CosmeticCategory category, String id) {
/* 119 */ return hasPurchased(category.name(), id);
/* */ }
/* */
/* */ static Permission hasPurchasedBridgeBound(Cosmetic cosmetic) {
/* 123 */ return player -> {
/* */ boolean overrideAccess = Cosmetics.get().getInteractableBridge().hasPermissionOverride(player, cosmetic);
/* */ return overrideAccess ? CompletableFuture.completedFuture(Boolean.valueOf(true)) : hasPurchased(cosmetic.category(), cosmetic.id()).hasAccess(player);
/* */ };
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission hasPurchased(Cosmetic cosmetic) {
/* 135 */ return hasPurchased(cosmetic.category(), cosmetic.id());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission all(List<Permission> permissions) {
/* 145 */ return player -> CompletableFuture.supplyAsync(());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission all(Permission... permissions) {
/* 164 */ return all(List.of(permissions));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission any(List<Permission> permissions) {
/* 175 */ return player -> CompletableFuture.supplyAsync(());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ static Permission any(Permission... permissions) {
/* 189 */ return any(List.of(permissions));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private static List<CompletableFuture<Boolean>> getResultFutures(Player player, List<Permission> permissions) {
/* 201 */ List<CompletableFuture<Boolean>> futures = new ArrayList<>();
/* 202 */ for (Permission requirement : permissions) {
/* 203 */ futures.add(requirement.hasAccess(player));
/* */ }
/* 205 */ return futures;
/* */ }
/* */
/* */ CompletableFuture<Boolean> hasAccess(Player paramPlayer);
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\Permission.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,43 @@
/* */ package com.minehut.cosmetics.cosmetics;
/* */
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */
/* */ public enum Rarity {
/* 8 */ ENTRY(Component.text("Entry").color((TextColor)NamedTextColor.GRAY), 10),
/* 9 */ COMMON(Component.text("Common").color((TextColor)NamedTextColor.WHITE), 25),
/* 10 */ UNCOMMON(Component.text("Uncommon").color((TextColor)NamedTextColor.DARK_GREEN), 50),
/* 11 */ RARE(Component.text("Rare").color((TextColor)NamedTextColor.AQUA), 100),
/* 12 */ LEGENDARY(Component.text("Legendary").color((TextColor)NamedTextColor.GOLD), 250);
/* */
/* */ private final Component display;
/* */ private final int salvageValue;
/* */
/* */ Rarity(Component display, int salvageValue) {
/* 18 */ this.display = display;
/* 19 */ this.salvageValue = salvageValue;
/* */ }
/* */
/* */ public Component display() {
/* 23 */ return this.display;
/* */ }
/* */
/* */ public int salvageValue() {
/* 27 */ return this.salvageValue;
/* */ }
/* */
/* */ public TextColor color() {
/* 31 */ return this.display.color();
/* */ }
/* */
/* */ public NamedTextColor closestNamedColor() {
/* 35 */ return NamedTextColor.nearestTo(color());
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\Rarity.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,187 @@
/* */ package com.minehut.cosmetics.cosmetics.bindings;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticSupplier;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import java.util.List;
/* */ import org.bukkit.Material;
/* */
/* */
/* */
/* */ public class Bindings
/* */ {
/* 14 */ public static MaterialBinding SWORD = (new MaterialBinding())
/* 15 */ .registerMaterials(List.of(Material.WOODEN_SWORD, Material.STONE_SWORD, Material.IRON_SWORD, Material.GOLDEN_SWORD, Material.DIAMOND_SWORD, Material.NETHERITE_SWORD))
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 23 */ .registerCosmetics(List.of((CosmeticSupplier<? extends Cosmetic>[])new CosmeticSupplier[] {
/* */ (CosmeticSupplier)Item.EXPLORER_SWORD, (CosmeticSupplier)Item.FALL_22_SWORD, (CosmeticSupplier)Item.FALL_22_LEAF_SWORD, (CosmeticSupplier)Item.KATANA, (CosmeticSupplier)Item.HALLO_22_SCYTHE, (CosmeticSupplier)Item.MAID_DUSTER, (CosmeticSupplier)Item.CRUSADER_SWORD, (CosmeticSupplier)Item.DRAGON_SWORD, (CosmeticSupplier)Item.FANCY_SHORT_SWORD, (CosmeticSupplier)Item.FISH_SWORD,
/* */ (CosmeticSupplier)Item.BAN_HAMMER, (CosmeticSupplier)Item.ICE_SWORD, (CosmeticSupplier)Item.EIGHT_BIT_SWORD, (CosmeticSupplier)Item.KUNAI, (CosmeticSupplier)Item.NINJATO, (CosmeticSupplier)Item.VALENTINE_SWORD, (CosmeticSupplier)Item.SPONGEBOB_SPATULA, (CosmeticSupplier)Item.TWIN_SAI, (CosmeticSupplier)Item.BO, (CosmeticSupplier)Item.NINJA_KATANA,
/* */ (CosmeticSupplier)Item.LEFISHE_SWORD, (CosmeticSupplier)Item.PUMPKIN_STAFF, (CosmeticSupplier)Item.WITCH_BROOM, (CosmeticSupplier)Item.ZOMBIE_HAND, (CosmeticSupplier)Item.GOLDEN_GOLF_CLUB }));
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 52 */ public static MaterialBinding PICKAXE = (new MaterialBinding())
/* 53 */ .registerMaterials(List.of(Material.WOODEN_PICKAXE, Material.STONE_PICKAXE, Material.IRON_PICKAXE, Material.GOLDEN_PICKAXE, Material.DIAMOND_PICKAXE, Material.NETHERITE_PICKAXE))
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 61 */ .registerCosmetics((List)List.of(Item.EXPLORER_PICKAXE, Item.FALL_22_PICKAXE, Item.MOLTEN_PICKAXE, Item.ICE_PICKAXE, Item.VALENTINE_PICKAXE));
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 70 */ public static MaterialBinding SHOVEL = (new MaterialBinding())
/* 71 */ .registerMaterials(List.of(Material.WOODEN_SHOVEL, Material.STONE_SHOVEL, Material.IRON_SHOVEL, Material.GOLDEN_SHOVEL, Material.DIAMOND_SHOVEL, Material.NETHERITE_SHOVEL))
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 79 */ .registerCosmetics((List)List.of(Item.FALL_22_SHOVEL, Item.GRAVE_SHOVEL, Item.ICE_SHOVEL));
/* */
/* */
/* */
/* */
/* */
/* */
/* 86 */ public static MaterialBinding AXE = (new MaterialBinding())
/* 87 */ .registerMaterials(List.of(Material.WOODEN_AXE, Material.STONE_AXE, Material.IRON_AXE, Material.GOLDEN_AXE, Material.DIAMOND_AXE, Material.NETHERITE_AXE))
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 95 */ .registerCosmetics((List)List.of(Item.FALL_22_AXE, Item.ARCADE_AXE, Item.ICE_AXE));
/* */
/* */
/* */
/* */
/* */
/* */
/* 102 */ public static MaterialBinding SPYGLASS = (new MaterialBinding())
/* 103 */ .registerMaterials(List.of(Material.SPYGLASS))
/* */
/* */
/* 106 */ .registerCosmetics((List)List.of(Item.EXPLORER_SPYGLASS));
/* */
/* */
/* */
/* 110 */ public static MaterialBinding HAT = (new MaterialBinding())
/* 111 */ .registerMaterials(List.of(Material.LEATHER_HELMET, Material.GOLDEN_HELMET, Material.CHAINMAIL_HELMET, Material.IRON_HELMET, Material.DIAMOND_HELMET, Material.NETHERITE_HELMET, Material.TURTLE_HELMET))
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 120 */ .registerCosmetics(List.of((CosmeticSupplier<? extends Cosmetic>[])new CosmeticSupplier[] {
/* */ (CosmeticSupplier)Hat.EXPLORER, (CosmeticSupplier)Hat.WITCH, (CosmeticSupplier)Hat.CAT_EARS, (CosmeticSupplier)Hat.DEVIL_HORNS, (CosmeticSupplier)Hat.FOX_EARS, (CosmeticSupplier)Hat.MAID, (CosmeticSupplier)Hat.FALL_22, (CosmeticSupplier)Hat.GAMER_HEADSET, (CosmeticSupplier)Hat.DRAGON, (CosmeticSupplier)Hat.STEAMPUNK,
/* */ (CosmeticSupplier)Hat.TURTLE, (CosmeticSupplier)Hat.TECHNICAL_VISOR, (CosmeticSupplier)Hat.NINJA_MASK, (CosmeticSupplier)Hat.RICE_HAT, (CosmeticSupplier)Hat.VALENTINES_SUNGLASSES, (CosmeticSupplier)Hat.VALENTINE_HEADBAND, (CosmeticSupplier)Hat.ARRGH_HELMET, (CosmeticSupplier)Hat.KRUSTY_KRAB, (CosmeticSupplier)Hat.AIR_HELMET, (CosmeticSupplier)Hat.EARTH_KINGDOM_HAT,
/* */ (CosmeticSupplier)Hat.FRANKENSTEIN, (CosmeticSupplier)Hat.JACK_O_LANTERN, (CosmeticSupplier)Hat.WITCH_24 }));
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 146 */ public static MaterialBinding SHIELD = (new MaterialBinding())
/* 147 */ .registerMaterials(List.of(Material.SHIELD))
/* */
/* */
/* 150 */ .registerCosmetics((List)List.of(Item.FALL_22_SHIELD, Item.ICE_SHIELD));
/* */
/* */
/* */
/* */
/* 155 */ public static MaterialBinding FISHING_ROD = (new MaterialBinding())
/* 156 */ .registerMaterials(List.of(Material.FISHING_ROD))
/* */
/* */
/* 159 */ .registerCosmetics((List)List.of(Item.FANCY_FISHING_ROD));
/* */
/* */
/* */
/* 163 */ public static MaterialBinding ARROW = (new MaterialBinding())
/* 164 */ .registerMaterials(List.of(Material.ARROW))
/* */
/* */
/* 167 */ .registerCosmetics((List)List.of(Item.FALL_22_ARROW));
/* */
/* */
/* */
/* 171 */ public static MaterialBinding BOW = (new MaterialBinding())
/* 172 */ .registerMaterials(List.of(Material.BOW))
/* */
/* */
/* 175 */ .registerCosmetics((List)List.of(Item.FALL_22_BOW));
/* */
/* */
/* */
/* */
/* 180 */ public static List<MaterialBinding> ALL = List.of(SWORD, PICKAXE, SHOVEL, AXE, SPYGLASS, HAT, SHIELD, ARROW, BOW, FISHING_ROD);
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\bindings\Bindings.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,32 @@
/* */ package com.minehut.cosmetics.cosmetics.bindings;
/* */
/* */ import java.util.HashMap;
/* */ import java.util.List;
/* */ import java.util.Optional;
/* */ import org.bukkit.Material;
/* */
/* */
/* */ public class CosmeticBindings
/* */ {
/* 11 */ private final HashMap<Material, MaterialBinding> bindings = new HashMap<>();
/* */
/* */ public void registerBinding(List<MaterialBinding> bindings) {
/* 14 */ bindings.forEach(binding -> binding.getMaterials().forEach(()));
/* */ }
/* */
/* */
/* */
/* */ public Optional<MaterialBinding> getBinding(Material material) {
/* 20 */ return Optional.ofNullable(this.bindings.get(material));
/* */ }
/* */
/* */ public boolean hasBinding(Material material) {
/* 24 */ return getBinding(material).isPresent();
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\bindings\CosmeticBindings.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,45 @@
/* */ package com.minehut.cosmetics.cosmetics.bindings;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.CosmeticSupplier;
/* */ import java.util.HashSet;
/* */ import java.util.List;
/* */ import org.bukkit.Material;
/* */
/* */
/* */
/* */
/* */
/* */ public class MaterialBinding
/* */ {
/* 15 */ private final HashSet<Material> materials = new HashSet<>();
/* 16 */ private final HashSet<CosmeticSupplier<? extends Cosmetic>> cosmetics = new HashSet<>();
/* */
/* */ public MaterialBinding registerMaterials(List<Material> materials) {
/* 19 */ this.materials.addAll(materials);
/* 20 */ return this;
/* */ }
/* */
/* */ public final MaterialBinding registerCosmetics(List<CosmeticSupplier<? extends Cosmetic>> cosmetics) {
/* 24 */ this.cosmetics.addAll(cosmetics);
/* 25 */ return this;
/* */ }
/* */
/* */ public HashSet<CosmeticSupplier<? extends Cosmetic>> getCosmetics() {
/* 29 */ return this.cosmetics;
/* */ }
/* */
/* */ public HashSet<Material> getMaterials() {
/* 33 */ return this.materials;
/* */ }
/* */
/* */ public boolean hasMaterial(Material material) {
/* 37 */ return this.materials.contains(material);
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\bindings\MaterialBinding.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,59 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.Style;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.enchantments.Enchantment;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall2022Axe extends ItemCosmetic {
/* */ public Fall2022Axe() {
/* 19 */ super(Item.FALL_22_AXE.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 24 */ return ((TextComponent)Component.text("Battle Axe of Autumn")
/* 25 */ .color(rarity().display().color()))
/* 26 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 31 */ return ItemBuilder.of(Material.DIAMOND_AXE)
/* 32 */ .display(name())
/* 33 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 34 */ }).modelData(1000001)
/* 35 */ .lore(new Component[] {
/* 36 */ (Component)Component.empty(),
/* 37 */ Component.text("Extra bounce in the boop arena!", (TextColor)NamedTextColor.GRAY).style(style -> TextDecoration.ITALIC.withState(false)),
/* 38 */ (Component)Component.empty()
/* */
/* 40 */ }).enchantUnsafe(Enchantment.KNOCKBACK, 5)
/* 41 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 46 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 51 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall2022Axe.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,50 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall2022Shield
/* */ extends ItemCosmetic {
/* */ public Fall2022Shield() {
/* 17 */ super(Item.FALL_22_SHIELD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Shield of Autumn")
/* 23 */ .color(rarity().display().color()))
/* 24 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.SHIELD)
/* 30 */ .display(name())
/* 31 */ .modelData(1000001)
/* 32 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 37 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 42 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall2022Shield.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,51 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22Arrow extends ItemCosmetic {
/* */ public Fall22Arrow() {
/* 17 */ super(Item.FALL_22_ARROW.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Arrow of Autumn")
/* 23 */ .color(rarity().display().color()))
/* 24 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.ARROW)
/* 30 */ .display(name())
/* 31 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 32 */ }).modelData(1000001)
/* 33 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 38 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 43 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22Arrow.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22Bow
/* */ extends ItemCosmetic {
/* */ public Fall22Bow() {
/* 18 */ super(Item.FALL_22_BOW.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Bow of Autumn")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.BOW)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1000001)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 44 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22Bow.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,50 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22Hat extends HatCosmetic {
/* */ public Fall22Hat() {
/* 16 */ super(Hat.FALL_22.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 21 */ return ((TextComponent)Component.text("Helmet of Autumn")
/* 22 */ .color(rarity().display().color()))
/* 23 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 28 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 29 */ .display(name())
/* 30 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 31 */ }).modelData(1001008)
/* 32 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 37 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 42 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22Hat.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,65 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.Style;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.enchantments.Enchantment;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22LeafSword extends ItemCosmetic {
/* */ public Fall22LeafSword() {
/* 20 */ super(Item.FALL_22_LEAF_SWORD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 25 */ return ((TextComponent)Component.text("The Fall Bringer")
/* 26 */ .color(rarity().display().color()))
/* 27 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 32 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 33 */ .display(name())
/* 34 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 35 */ }).modelData(1000006)
/* 36 */ .lore(new Component[] {
/* 37 */ (Component)Component.empty(),
/* 38 */ Component.text("Extra bounce in the boop arena!", (TextColor)NamedTextColor.GRAY).style(style -> TextDecoration.ITALIC.withState(false)),
/* 39 */ (Component)Component.empty()
/* */
/* 41 */ }).enchantUnsafe(Enchantment.KNOCKBACK, 5)
/* 42 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 47 */ return Rarity.UNCOMMON;
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 52 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 57 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22LeafSword.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,48 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22LeafSwordWings extends WingCosmetic {
/* 12 */ private final Fall22LeafSword sword = new Fall22LeafSword();
/* */
/* */ public Fall22LeafSwordWings() {
/* 15 */ super(Wing.FALL_22_LEAF_SWORD.name());
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 20 */ return this.sword.visibility();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 25 */ return this.sword.name();
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return this.sword.menuIcon();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 35 */ return this.sword.collection();
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 40 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22LeafSwordWings.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22Pickaxe
/* */ extends ItemCosmetic {
/* */ public Fall22Pickaxe() {
/* 18 */ super(Item.FALL_22_PICKAXE.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Pickaxe of Autumn")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_PICKAXE)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1000002)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 44 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22Pickaxe.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22Shovel
/* */ extends ItemCosmetic {
/* */ public Fall22Shovel() {
/* 18 */ super(Item.FALL_22_SHOVEL.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Shovel of Autumn")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_SHOVEL)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1000001)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 44 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22Shovel.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22Sword
/* */ extends ItemCosmetic {
/* */ public Fall22Sword() {
/* 18 */ super(Item.FALL_22_SWORD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Blade of Autumn")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1000002)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 44 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22Sword.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,49 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Fall22Wings extends WingCosmetic {
/* */ public Fall22Wings() {
/* 16 */ super(Wing.FALL_22.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 21 */ return ((TextComponent)Component.text("Wings of Autumn")
/* 22 */ .color(rarity().display().color()))
/* 23 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 28 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 29 */ .display(name())
/* 30 */ .modelData(1003004)
/* 31 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 36 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 41 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\Fall22Wings.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,57 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.autumn2022;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class LatteCompanion
/* */ extends CompanionCosmetic {
/* */ public LatteCompanion() {
/* 18 */ super(Companion.LATTE_KUN
/* 19 */ .name(), new Vector(0, -1, 0), true, true, false);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Component name() {
/* 29 */ return ((TextComponent)Component.text("Latte-kun")
/* 30 */ .decoration(TextDecoration.ITALIC, false))
/* 31 */ .color(rarity().display().color());
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 36 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 37 */ .display(name())
/* 38 */ .modelData(1002002)
/* 39 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 44 */ return Collection.FALL_22;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 49 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\autumn2022\LatteCompanion.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,64 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.beta;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CompieCompanion extends CompanionCosmetic {
/* */ public CompieCompanion() {
/* 17 */ super(Companion.EXPLORER
/* 18 */ .name(), new Vector(0, -1, 0), true, true, false);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Permission visibility() {
/* 28 */ return Permission.collectionIsActive(Collection.BETA);
/* */ }
/* */
/* */
/* */ public Component name() {
/* 33 */ return Component.text("Compie-chan").color(rarity().display().color());
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 38 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 39 */ .display(name())
/* 40 */ .modelData(1002001)
/* 41 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 46 */ return Collection.BETA;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 51 */ return Rarity.ENTRY;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 56 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\beta\CompieCompanion.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,58 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.beta;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class ExplorerHat
/* */ extends HatCosmetic {
/* */ public ExplorerHat() {
/* 19 */ super(Hat.EXPLORER.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 24 */ return ((TextComponent)Component.text("Explorer's Hat")
/* 25 */ .color(rarity().display().color()))
/* 26 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 31 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 32 */ .display(name())
/* 33 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 34 */ }).modelData(1001001)
/* 35 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 40 */ return Collection.BETA;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 45 */ return Rarity.ENTRY;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 50 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\beta\ExplorerHat.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,58 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.beta;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class ExplorerPickaxe
/* */ extends ItemCosmetic {
/* */ public ExplorerPickaxe() {
/* 19 */ super(Item.EXPLORER_PICKAXE.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 24 */ return ((TextComponent)Component.text("Explorer's Pickaxe")
/* 25 */ .color(rarity().display().color()))
/* 26 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 31 */ return ItemBuilder.of(Material.DIAMOND_PICKAXE)
/* 32 */ .display(name())
/* 33 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 34 */ }).modelData(1000001)
/* 35 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 40 */ return Rarity.ENTRY;
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 45 */ return Collection.BETA;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 50 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\beta\ExplorerPickaxe.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,66 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.beta;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class ExplorerSpyglass extends ItemCosmetic {
/* */ public ExplorerSpyglass() {
/* 18 */ super(Item.EXPLORER_SPYGLASS.name());
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 23 */ return Permission.hasPurchased((Cosmetic)this);
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 28 */ return Permission.collectionIsActive(Collection.BETA);
/* */ }
/* */
/* */
/* */ public Component name() {
/* 33 */ return ((TextComponent)Component.text("Explorer's Spyglass")
/* 34 */ .color(rarity().display().color()))
/* 35 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 40 */ return ItemBuilder.of(Material.SPYGLASS)
/* 41 */ .display(name())
/* 42 */ .modelData(1000001)
/* 43 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 48 */ return Rarity.ENTRY;
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 53 */ return Collection.BETA;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 58 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\beta\ExplorerSpyglass.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,66 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.beta;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.Style;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.enchantments.Enchantment;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class ExplorerSword extends ItemCosmetic {
/* */ public ExplorerSword() {
/* 21 */ super(Item.EXPLORER_SWORD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 26 */ return ((TextComponent)Component.text("Explorer's Blade")
/* 27 */ .color(rarity().display().color()))
/* 28 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 33 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 34 */ .display(name())
/* 35 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 36 */ }).modelData(1000001)
/* 37 */ .lore(new Component[] {
/* 38 */ (Component)Component.empty(),
/* 39 */ Component.text("Extra bounce in the boop arena!", (TextColor)NamedTextColor.GRAY).style(style -> TextDecoration.ITALIC.withState(false)),
/* 40 */ (Component)Component.empty()
/* */
/* 42 */ }).enchantUnsafe(Enchantment.KNOCKBACK, 5)
/* 43 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 48 */ return Rarity.ENTRY;
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 53 */ return Collection.BETA;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 58 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\beta\ExplorerSword.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,91 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.cheeseheads;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.CosmeticEffects;
/* */ import java.util.concurrent.ThreadLocalRandom;
/* */ import net.kyori.adventure.key.Key;
/* */ import net.kyori.adventure.sound.Sound;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Bukkit;
/* */ import org.bukkit.Location;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.entity.LivingEntity;
/* */ import org.bukkit.entity.Player;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.inventory.meta.ItemMeta;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CheeseHorseCompanion extends CompanionCosmetic {
/* 24 */ private static final Sound SOUND = Sound.sound(Key.key("entity.horse.ambient"), Sound.Source.AMBIENT, 0.5F, 1.15F);
/* */
/* */ private static final long MAX_SOUND_TICKS = 3600L;
/* */ private static final long MIN_SOUND_TICKS = 1800L;
/* 28 */ private long nextTick = 0L;
/* */
/* */ public CheeseHorseCompanion() {
/* 31 */ super(Companion.CHEESE_HORSE.name(), new Vector(0, 0, 0), true, true, false);
/* */
/* */
/* */
/* */
/* */
/* 37 */ updateSoundTicks();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 42 */ return (Component)Component.text("Cheese Horse", (TextColor)NamedTextColor.GOLD);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 47 */ ItemStack item = new ItemStack(Material.HEART_OF_THE_SEA);
/* 48 */ item.editMeta(meta -> {
/* */ meta.displayName(name());
/* */ meta.setCustomModelData(Integer.valueOf(1002022));
/* */ });
/* 52 */ return item;
/* */ }
/* */
/* */
/* */ public void tick() {
/* 57 */ super.tick();
/* */
/* 59 */ if (Bukkit.getCurrentTick() >= this.nextTick) {
/* */
/* 61 */ player().ifPresent(owner -> {
/* */ for (LivingEntity entity : entities()) {
/* */ Location location = entity.getLocation();
/* */
/* */ CosmeticEffects.playSound(owner, SOUND, location);
/* */ }
/* */ });
/* 68 */ updateSoundTicks();
/* */ }
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 74 */ return Collection.CHEESE_HEADS;
/* */ }
/* */
/* */ private void updateSoundTicks() {
/* 78 */ this.nextTick = Bukkit.getCurrentTick() + 1800L + ThreadLocalRandom.current().nextLong(1800L);
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 83 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\cheeseheads\CheeseHorseCompanion.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,61 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.crusader;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.Style;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.enchantments.Enchantment;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CrusaderSword extends ItemCosmetic {
/* */ public CrusaderSword() {
/* 21 */ super(Item.CRUSADER_SWORD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 26 */ return ((TextComponent)Component.text("Crusader's Sword")
/* 27 */ .color(rarity().display().color()))
/* 28 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 33 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 34 */ .display(name())
/* 35 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 36 */ }).modelData(1000007)
/* 37 */ .lore(new Component[] {
/* 38 */ (Component)Component.empty(),
/* 39 */ Component.text("Extra bounce in the boop arena!", (TextColor)NamedTextColor.GRAY).style(style -> TextDecoration.ITALIC.withState(false)),
/* 40 */ (Component)Component.empty()
/* */
/* 42 */ }).enchantUnsafe(Enchantment.KNOCKBACK, 5)
/* 43 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 48 */ return Collection.CRUSADER;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 53 */ return Rarity.LEGENDARY;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\crusader\CrusaderSword.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,65 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.base.AnimatedPixelArtParticle;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class BlobDanceParticle extends AnimatedPixelArtParticle {
/* */ public BlobDanceParticle() {
/* 17 */ super(Particle.BLOB_DANCE.name(), 1, "blobdance", 10, 1, 1);
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 22 */ return Permission.staff();
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 27 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 32 */ return Component.text("Blob Dance").color((TextColor)NamedTextColor.GRAY);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 37 */ return ItemBuilder.of(Material.PUFFERFISH)
/* 38 */ .display(name())
/* 39 */ .lore(new Component[] { (Component)Component.empty(),
/* 40 */ Component.text("We be dancin").color((TextColor)NamedTextColor.WHITE),
/* 41 */ (Component)Component.empty()
/* 42 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 47 */ return Collection.DEV;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 52 */ return Rarity.LEGENDARY;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 57 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\BlobDanceParticle.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,60 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.base.AnimatedPixelArtParticle;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CompassBurstParticle extends AnimatedPixelArtParticle {
/* */ public CompassBurstParticle() {
/* 17 */ super(Particle.COMPASS_BURST.name(), 1, "compassburst", 1, 3, 20);
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 22 */ return Permission.staff();
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 27 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 32 */ return Component.text("Compass Burst").color((TextColor)NamedTextColor.GRAY);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 37 */ return ItemBuilder.of(Material.COMPASS)
/* 38 */ .lore(new Component[] { (Component)Component.empty(),
/* 39 */ Component.text("Just another particle").color((TextColor)NamedTextColor.WHITE),
/* 40 */ (Component)Component.empty()
/* */
/* 42 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 47 */ return Collection.DEV;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 52 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\CompassBurstParticle.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,60 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.base.AmbientPixelArtParticle;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class FancyCompassParticle extends AmbientPixelArtParticle {
/* */ public FancyCompassParticle() {
/* 17 */ super(Particle.FANCY_COMPASS.name(), 1, "fancy_compass", 3);
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 22 */ return Permission.staff();
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 27 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 32 */ return Component.text("Fancy Compass").color((TextColor)NamedTextColor.GRAY);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 37 */ return ItemBuilder.of(Material.COMPASS)
/* 38 */ .display(name())
/* 39 */ .lore(new Component[] { (Component)Component.empty(),
/* 40 */ Component.text("Just another particle").color((TextColor)NamedTextColor.WHITE),
/* 41 */ (Component)Component.empty()
/* 42 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 47 */ return Collection.DEV;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 52 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\FancyCompassParticle.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,66 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.base.AmbientPixelArtParticle;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class FireParticle extends AmbientPixelArtParticle {
/* */ public FireParticle() {
/* 18 */ super(Particle.FIRE.name(), 1, "fire", 3);
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 23 */ return Permission.staff();
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 28 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 33 */ return Component.text("Fire Particle").color((TextColor)NamedTextColor.GRAY);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 38 */ return ItemBuilder.of(Material.TORCH)
/* 39 */ .display(name())
/* 40 */ .lore(new Component[] { (Component)Component.empty(),
/* 41 */ Component.text("Just another particle").color((TextColor)NamedTextColor.WHITE),
/* 42 */ (Component)Component.empty()
/* 43 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 48 */ return Collection.DEV;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 53 */ return Rarity.UNCOMMON;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 58 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\FireParticle.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,63 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.base.AmbientPixelArtParticle;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class GoldPickParticle extends AmbientPixelArtParticle {
/* */ public GoldPickParticle() {
/* 18 */ super(Particle.GOLD_PICK.name(), 1, "gold_pickaxe", 3);
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 23 */ return Permission.staff();
/* */ }
/* */ private static final String REQUIRED = "EXPLORERS";
/* */
/* */ public Permission visibility() {
/* 28 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 33 */ return Component.text("Gold Pickaxe").color(rarity().display().color());
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 38 */ return ItemBuilder.of(Material.ELYTRA)
/* 39 */ .display(name())
/* 40 */ .lore(new Component[] { (Component)Component.empty(),
/* 41 */ Component.text("Just another particle").color((TextColor)NamedTextColor.WHITE),
/* 42 */ (Component)Component.empty(), (
/* 43 */ (TextComponent)Component.text("Requires ").color((TextColor)NamedTextColor.GRAY)).append((Component)Component.text("EXPLORERS")),
/* 44 */ (Component)Component.empty()
/* 45 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 50 */ return Collection.DEV;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 55 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\GoldPickParticle.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,71 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import java.util.UUID;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Katana extends ItemCosmetic {
/* */ public Katana() {
/* 21 */ super(Item.KATANA.name());
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 26 */ return Permission.uuid(UUID.fromString("0cab222b-63ce-46c0-ada3-a56365f2dc8a"));
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 31 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 36 */ return ((TextComponent)Component.text("Katana's Katana")
/* 37 */ .color((TextColor)NamedTextColor.GOLD))
/* 38 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 43 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 44 */ .display(name())
/* 45 */ .lore(new Component[] {
/* 46 */ (Component)Component.empty(),
/* 47 */ Component.text("A Katana forged from the finest metals").color((TextColor)NamedTextColor.GOLD),
/* 48 */ Component.text("to be held by the true 'Block Game Legend'").color((TextColor)NamedTextColor.GOLD),
/* 49 */ (Component)Component.empty()
/* */
/* 51 */ }).flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 52 */ }).modelData(1000003)
/* 53 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 58 */ return Collection.DEV;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 63 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\Katana.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,56 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import java.util.UUID;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class KatanaBack
/* */ extends WingCosmetic
/* */ {
/* 15 */ private final Katana katana = new Katana();
/* */
/* */ public KatanaBack() {
/* 18 */ super(Item.KATANA.name());
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 23 */ return Permission.uuid(UUID.fromString("0cab222b-63ce-46c0-ada3-a56365f2dc8a"));
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 28 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 33 */ return this.katana.name();
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 38 */ return this.katana.menuIcon();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 43 */ return Collection.DEV;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 48 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\KatanaBack.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,62 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import java.util.Objects;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class MeFollower extends CompanionCosmetic {
/* */ public MeFollower() {
/* 17 */ super(Companion.ME_BUDDY
/* 18 */ .name(), new Vector(0.0F, -1.0F, 0.0F), true, true, true);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Component name() {
/* 28 */ return Component.text("ME").color(rarity().display().color());
/* */ }
/* */
/* */
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 35 */ ItemBuilder builder = ItemBuilder.of(Material.PLAYER_HEAD).display(name());
/* */
/* 37 */ Objects.requireNonNull(builder); player().ifPresent(builder::playerHead);
/* */
/* 39 */ return builder.build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 44 */ return Collection.DEV;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 49 */ return Rarity.RARE;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 54 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\MeFollower.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.base.AmbientPixelArtParticle;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class QuillParticle extends AmbientPixelArtParticle {
/* */ public QuillParticle() {
/* 14 */ super(Particle.QUILL.name(), 1, "quill", 3);
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 19 */ return Permission.staff();
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 24 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 29 */ return (Component)Component.text("Placeholder");
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 34 */ return new ItemStack(Material.AMETHYST_SHARD);
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.DEV;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 44 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\QuillParticle.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,62 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.base.AmbientPixelArtParticle;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class RealPickParticle extends AmbientPixelArtParticle {
/* */ public RealPickParticle() {
/* 18 */ super(Particle.REAL_PICK.name(), 1, "realpick", 3);
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 23 */ return Permission.staff();
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 28 */ return Permission.deny();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 33 */ return (Component)Component.text("Placeholder");
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 38 */ return ItemBuilder.of(Material.GOLDEN_PICKAXE)
/* 39 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 40 */ }).display(name())
/* 41 */ .lore(new Component[] { (Component)Component.empty(),
/* 42 */ Component.text("Just another particle").color((TextColor)NamedTextColor.WHITE),
/* 43 */ (Component)Component.empty()
/* 44 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 49 */ return Collection.DEV;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 54 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\RealPickParticle.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,56 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dev;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.Particle;
/* */ import com.minehut.cosmetics.cosmetics.types.particle.base.AmbientPixelArtParticle;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class StarParticle
/* */ extends AmbientPixelArtParticle {
/* */ public StarParticle() {
/* 16 */ super(Particle.STAR.name(), 1, "star", 3);
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 21 */ return Permission.staff();
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 26 */ return Permission.staff();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 31 */ return Component.text("Star").color(rarity().display().color());
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 36 */ return ItemBuilder.of(Material.NETHER_STAR)
/* 37 */ .display(name())
/* 38 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 43 */ return Collection.DEV;
/* */ }
/* */
/* */
/* */ public boolean isEvent() {
/* 48 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dev\StarParticle.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,50 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class ArcadeWings extends WingCosmetic {
/* */ public ArcadeWings() {
/* 17 */ super(Wing.ARCADE.name());
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 22 */ return Permission.collectionIsActive(Collection.DRAGON_CRATE);
/* */ }
/* */
/* */
/* */ public Component name() {
/* 27 */ return ((TextComponent)Component.text("Mech Wings")
/* 28 */ .color(rarity().display().color()))
/* 29 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 34 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 35 */ .display(name())
/* 36 */ .modelData(1003008)
/* 37 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 42 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\ArcadeWings.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,67 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.Style;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.enchantments.Enchantment;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class BanHammer extends ItemCosmetic {
/* */ public BanHammer() {
/* 22 */ super(Item.BAN_HAMMER.name());
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 27 */ return Permission.collectionIsActive(Collection.DRAGON_CRATE);
/* */ }
/* */
/* */
/* */ public Component name() {
/* 32 */ return ((TextComponent)Component.text("The Ban Hammer")
/* 33 */ .color(rarity().display().color()))
/* 34 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 39 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 40 */ .display(name())
/* 41 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 42 */ }).modelData(1000011)
/* 43 */ .lore(new Component[] {
/* 44 */ (Component)Component.empty(),
/* 45 */ Component.text("Extra bounce in the boop arena!", (TextColor)NamedTextColor.GRAY).style(style -> TextDecoration.ITALIC.withState(false)),
/* 46 */ (Component)Component.empty()
/* */
/* 48 */ }).enchantUnsafe(Enchantment.KNOCKBACK, 5)
/* 49 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 54 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 59 */ return Rarity.LEGENDARY;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\BanHammer.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,54 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.Style;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.enchantments.Enchantment;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class DragonCleaver extends ItemCosmetic {
/* */ public DragonCleaver() {
/* 19 */ super(Item.DRAGON_SWORD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 24 */ return ((TextComponent)Component.text("Large Dragon Sword")
/* 25 */ .color(rarity().display().color()))
/* 26 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 31 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 32 */ .display(name())
/* 33 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 34 */ }).modelData(1000010)
/* 35 */ .lore(new Component[] {
/* 36 */ (Component)Component.empty(),
/* 37 */ Component.text("Extra bounce in the boop arena!", (TextColor)NamedTextColor.GRAY).style(style -> TextDecoration.ITALIC.withState(false)),
/* 38 */ (Component)Component.empty()
/* */
/* 40 */ }).enchantUnsafe(Enchantment.KNOCKBACK, 5)
/* 41 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 46 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\DragonCleaver.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,51 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class DragonEggCompanion
/* */ extends CompanionCosmetic {
/* */ public DragonEggCompanion() {
/* 18 */ super(Companion.DRAGON_EGG.name(), new Vector(0, -1, 0), true, true, false);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Component name() {
/* 28 */ return ((TextComponent)Component.text("Dragon Egg")
/* 29 */ .color(rarity().display().color()))
/* 30 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 35 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 36 */ .display(name())
/* 37 */ .modelData(1002016)
/* 38 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 43 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\DragonEggCompanion.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class DragonHat extends HatCosmetic {
/* */ public DragonHat() {
/* 18 */ super(Hat.DRAGON.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Dragon Hat")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 31 */ .modelData(1001009)
/* 32 */ .display(name())
/* 33 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 34 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 44 */ return Rarity.UNCOMMON;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\DragonHat.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,45 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class DragonWings extends WingCosmetic {
/* */ public DragonWings() {
/* 17 */ super(Wing.DRAGON.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Large Dragon Wings")
/* 23 */ .color((TextColor)NamedTextColor.GOLD))
/* 24 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 30 */ .modelData(1003005)
/* 31 */ .display(name())
/* 32 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 37 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\DragonWings.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class FancyFishingRod extends ItemCosmetic {
/* */ public FancyFishingRod() {
/* 18 */ super(Item.FANCY_FISHING_ROD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Fancy Fishing Rod")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.FISHING_ROD)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1000001)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 44 */ return Rarity.LEGENDARY;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\FancyFishingRod.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,61 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.Style;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.enchantments.Enchantment;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class FishSword extends ItemCosmetic {
/* */ public FishSword() {
/* 21 */ super(Item.FISH_SWORD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 26 */ return ((TextComponent)Component.text("15lb Fish")
/* 27 */ .color(rarity().display().color()))
/* 28 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 33 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 34 */ .display(name())
/* 35 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 36 */ }).modelData(1000008)
/* 37 */ .lore(new Component[] {
/* 38 */ (Component)Component.empty(),
/* 39 */ Component.text("Extra bounce in the boop arena!", (TextColor)NamedTextColor.GRAY).style(style -> TextDecoration.ITALIC.withState(false)),
/* 40 */ (Component)Component.empty()
/* */
/* 42 */ }).enchantUnsafe(Enchantment.KNOCKBACK, 5)
/* 43 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 48 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 53 */ return Rarity.ENTRY;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\FishSword.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,53 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class GamerHeadset
/* */ extends HatCosmetic {
/* */ public GamerHeadset() {
/* 19 */ super(Hat.GAMER_HEADSET.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 24 */ return ((TextComponent)Component.text("Pink Gamer Headset")
/* 25 */ .color(rarity().display().color()))
/* 26 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 31 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 36 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 37 */ .modelData(1001012)
/* 38 */ .display(name())
/* 39 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 40 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 45 */ return Rarity.RARE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\GamerHeadset.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,44 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class LargePegasusWings extends WingCosmetic {
/* */ public LargePegasusWings() {
/* 16 */ super(Wing.PEGASUS_LARGE.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 21 */ return ((TextComponent)Component.text("Large Pegasus Wings")
/* 22 */ .color(rarity().display().color()))
/* 23 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 28 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 29 */ .modelData(1003007)
/* 30 */ .display(name())
/* 31 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 36 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\LargePegasusWings.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class MechVisor extends HatCosmetic {
/* */ public MechVisor() {
/* 18 */ super(Hat.TECHNICAL_VISOR.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Mech Visor")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 31 */ .modelData(1001013)
/* 32 */ .display(name())
/* 33 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 34 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 44 */ return Rarity.LEGENDARY;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\MechVisor.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,53 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class MoltenPickaxe extends ItemCosmetic {
/* */ public MoltenPickaxe() {
/* 19 */ super(Item.MOLTEN_PICKAXE.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 24 */ return ((TextComponent)Component.text("Molten Pickaxe")
/* 25 */ .color((TextColor)NamedTextColor.GOLD))
/* 26 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 31 */ return ItemBuilder.of(Material.DIAMOND_PICKAXE)
/* 32 */ .display(name())
/* 33 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 34 */ }).modelData(1000003)
/* 35 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 40 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 45 */ return Rarity.UNCOMMON;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\MoltenPickaxe.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,45 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.Balloon;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.BalloonCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class PaperDragonBalloon
/* */ extends BalloonCosmetic {
/* */ public PaperDragonBalloon() {
/* 17 */ super(Balloon.PAPER_DRAGON.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Paper Dragon Kite")
/* 23 */ .color(rarity().display().color()))
/* 24 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 30 */ .display(name())
/* 31 */ .modelData(1004002)
/* 32 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 37 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\PaperDragonBalloon.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,44 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.Balloon;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.BalloonCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class PaperLanternBalloon extends BalloonCosmetic {
/* */ public PaperLanternBalloon() {
/* 16 */ super(Balloon.PAPER_LANTERN.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 21 */ return ((TextComponent)Component.text("Candle-lit Lantern")
/* 22 */ .color(rarity().display().color()))
/* 23 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 28 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 29 */ .display(name())
/* 30 */ .modelData(1004003)
/* 31 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 36 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\PaperLanternBalloon.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,50 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class PegasusWings extends WingCosmetic {
/* */ public PegasusWings() {
/* 17 */ super(Wing.PEGASUS.name());
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 22 */ return Permission.collectionIsActive(Collection.DRAGON_CRATE);
/* */ }
/* */
/* */
/* */ public Component name() {
/* 27 */ return ((TextComponent)Component.text("Small Pegasus Wings")
/* 28 */ .color(rarity().display().color()))
/* 29 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 34 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 35 */ .modelData(1003006)
/* 36 */ .display(name())
/* 37 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 42 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\PegasusWings.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,55 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.NamedTextColor;
/* */ import net.kyori.adventure.text.format.Style;
/* */ import net.kyori.adventure.text.format.TextColor;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.enchantments.Enchantment;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class ShortSword extends ItemCosmetic {
/* */ public ShortSword() {
/* 20 */ super(Item.FANCY_SHORT_SWORD.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 25 */ return ((TextComponent)Component.text("Fancy Shortsword")
/* 26 */ .color(rarity().display().color()))
/* 27 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 32 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 33 */ .display(name())
/* 34 */ .modelData(1000009)
/* 35 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 36 */ }).lore(new Component[] {
/* 37 */ (Component)Component.empty(),
/* 38 */ Component.text("Extra bounce in the boop arena!", (TextColor)NamedTextColor.GRAY).style(style -> TextDecoration.ITALIC.withState(false)),
/* 39 */ (Component)Component.empty()
/* */
/* 41 */ }).enchantUnsafe(Enchantment.KNOCKBACK, 5)
/* 42 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 47 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\ShortSword.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,46 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class SteampunkHat extends HatCosmetic {
/* */ public SteampunkHat() {
/* 17 */ super(Hat.STEAMPUNK.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Steampunk Hat")
/* 23 */ .color(rarity().display().color()))
/* 24 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 30 */ .modelData(1001010)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 38 */ return Collection.DRAGON_CRATE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\SteampunkHat.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,53 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class TurtleHat
/* */ extends HatCosmetic {
/* */ public TurtleHat() {
/* 19 */ super(Hat.TURTLE.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 24 */ return ((TextComponent)Component.text("Turtle Hat")
/* 25 */ .color(rarity().display().color()))
/* 26 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 31 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 36 */ return Rarity.RARE;
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 41 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 42 */ .display(name())
/* 43 */ .modelData(1001011)
/* 44 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 45 */ }).build();
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\TurtleHat.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,57 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class UfoCowCompanion
/* */ extends CompanionCosmetic {
/* */ public UfoCowCompanion() {
/* 19 */ super(Companion.UFO_COW.name(), new Vector(0, -1, 0), true, true, false);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Component name() {
/* 29 */ return ((TextComponent)Component.text("Mooon Cow")
/* 30 */ .color(rarity().display().color()))
/* 31 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 36 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 37 */ .display(name())
/* 38 */ .modelData(1002017)
/* 39 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 44 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 49 */ return Rarity.UNCOMMON;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\UfoCowCompanion.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,57 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.dragoncrate;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class YoungDragonCompanion
/* */ extends CompanionCosmetic {
/* */ public YoungDragonCompanion() {
/* 19 */ super(Companion.YOUNG_DRAGON.name(), new Vector(0, -1, 0), true, true, false);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public Component name() {
/* 29 */ return ((TextComponent)Component.text("Young Dragon Pet")
/* 30 */ .color(rarity().display().color()))
/* 31 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 36 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 37 */ .display(name())
/* 38 */ .modelData(1002018)
/* 39 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 44 */ return Collection.DRAGON_CRATE;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 49 */ return Rarity.UNCOMMON;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\dragoncrate\YoungDragonCompanion.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,51 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class Bunny extends CompanionCosmetic {
/* */ public Bunny() {
/* 18 */ super(Companion.BUNNY.name(), new Vector(0, -1, 0), true, true, false);
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Bunny")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 31 */ .modelData(1002041)
/* 32 */ .display(name())
/* 33 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 38 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 43 */ return Rarity.RARE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\Bunny.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class BunnyEars extends HatCosmetic {
/* */ public BunnyEars() {
/* 18 */ super(Hat.BUNNY_EARS.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Bunny Ears")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1001064)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 44 */ return Rarity.UNCOMMON;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\BunnyEars.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,50 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CarrotQuiver extends WingCosmetic {
/* */ public CarrotQuiver() {
/* 17 */ super(Wing.CARROT_QUIVER.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Carrot Quiver")
/* 23 */ .color(rarity().display().color()))
/* 24 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 30 */ .display(name())
/* 31 */ .modelData(1003033)
/* 32 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 37 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 42 */ return Rarity.UNCOMMON;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\CarrotQuiver.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,50 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.Balloon;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.BalloonCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class FloatingCarrot extends BalloonCosmetic {
/* */ public FloatingCarrot() {
/* 17 */ super(Balloon.FLOATING_CARROT.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Floating Carrot")
/* 23 */ .decoration(TextDecoration.ITALIC, false))
/* 24 */ .color(rarity().display().color());
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 30 */ .display(name())
/* 31 */ .modelData(1004017)
/* 32 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 37 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 42 */ return Rarity.UNCOMMON;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\FloatingCarrot.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,50 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.Balloon;
/* */ import com.minehut.cosmetics.cosmetics.types.balloon.BalloonCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class FlyingChick extends BalloonCosmetic {
/* */ public FlyingChick() {
/* 17 */ super(Balloon.FLYING_CHICK.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Flying Chick")
/* 23 */ .decoration(TextDecoration.ITALIC, false))
/* 24 */ .color(rarity().display().color());
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 30 */ .display(name())
/* 31 */ .modelData(1004018)
/* 32 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 37 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 42 */ return Rarity.LEGENDARY;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\FlyingChick.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,51 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.Companion;
/* */ import com.minehut.cosmetics.cosmetics.types.companion.CompanionCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.bukkit.util.Vector;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class FormalBunny extends CompanionCosmetic {
/* */ public FormalBunny() {
/* 18 */ super(Companion.FORMAL_BUNNY.name(), new Vector(0, -1, 0), true, true, false);
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Formal Bunny")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 31 */ .modelData(1002040)
/* 32 */ .display(name())
/* 33 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 38 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 43 */ return Rarity.LEGENDARY;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\FormalBunny.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class HareCap extends HatCosmetic {
/* */ public HareCap() {
/* 18 */ super(Hat.HARE_CAP.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Hare Cap")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1001068)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 44 */ return Rarity.LEGENDARY;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\HareCap.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,50 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.Wing;
/* */ import com.minehut.cosmetics.cosmetics.types.wing.WingCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class HatchingChick extends WingCosmetic {
/* */ public HatchingChick() {
/* 17 */ super(Wing.HATCHING_CHICK.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 22 */ return ((TextComponent)Component.text("Hatching Chick")
/* 23 */ .color(rarity().display().color()))
/* 24 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 29 */ return ItemBuilder.of(Material.HEART_OF_THE_SEA)
/* 30 */ .display(name())
/* 31 */ .modelData(1003034)
/* 32 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 37 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 42 */ return Rarity.RARE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\HatchingChick.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,56 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.item.Item;
/* */ import com.minehut.cosmetics.cosmetics.types.item.ItemCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */
/* */
/* */ public class MarshmallowPolearm
/* */ extends ItemCosmetic
/* */ {
/* */ public MarshmallowPolearm() {
/* 22 */ super(Item.MARSHMALLOW_POLEARM.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 27 */ return ((TextComponent)Component.text("Marshmallow Polearm")
/* 28 */ .color(rarity().display().color()))
/* 29 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 34 */ return ItemBuilder.of(Material.DIAMOND_SWORD)
/* 35 */ .display(name())
/* 36 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 37 */ }).modelData(1000035)
/* 38 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 43 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 48 */ return Rarity.RARE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\MarshmallowPolearm.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class PetalMohawk extends HatCosmetic {
/* */ public PetalMohawk() {
/* 18 */ super(Hat.PETAL_MOHAWK.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Petal Mohawk")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1001065)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 44 */ return Rarity.RARE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\PetalMohawk.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class TheChocolateDippedEars extends HatCosmetic {
/* */ public TheChocolateDippedEars() {
/* 18 */ super(Hat.THE_CHOCOLATE_DIPPED_EARS.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("The Chocolate Dipped Ears")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1001067)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 44 */ return Rarity.UNCOMMON;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\TheChocolateDippedEars.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,52 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.easter2026;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Rarity;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.Hat;
/* */ import com.minehut.cosmetics.cosmetics.types.hat.HatCosmetic;
/* */ import com.minehut.cosmetics.util.ItemBuilder;
/* */ import net.kyori.adventure.text.Component;
/* */ import net.kyori.adventure.text.TextComponent;
/* */ import net.kyori.adventure.text.format.TextDecoration;
/* */ import org.bukkit.Material;
/* */ import org.bukkit.inventory.ItemFlag;
/* */ import org.bukkit.inventory.ItemStack;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class WildflowerBun extends HatCosmetic {
/* */ public WildflowerBun() {
/* 18 */ super(Hat.WILDFLOWER_BUN.name());
/* */ }
/* */
/* */
/* */ public Component name() {
/* 23 */ return ((TextComponent)Component.text("Wildflower Bun")
/* 24 */ .color(rarity().display().color()))
/* 25 */ .decoration(TextDecoration.ITALIC, false);
/* */ }
/* */
/* */ @NotNull
/* */ public ItemStack menuIcon() {
/* 30 */ return ItemBuilder.of(Material.DIAMOND_LEGGINGS)
/* 31 */ .display(name())
/* 32 */ .flags(new ItemFlag[] { ItemFlag.HIDE_ATTRIBUTES
/* 33 */ }).modelData(1001066)
/* 34 */ .build();
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 39 */ return Collection.EASTER_2026;
/* */ }
/* */
/* */ @NotNull
/* */ public Rarity rarity() {
/* 44 */ return Rarity.RARE;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\easter2026\WildflowerBun.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,51 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.expressive;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.Emoji;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.EmojiCosmetic;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CatAngryEmoji extends EmojiCosmetic {
/* */ public CatAngryEmoji() {
/* 13 */ super(Emoji.CAT_ANGRY.name());
/* */ }
/* */
/* */ @NotNull
/* */ public String keyword() {
/* 18 */ return ":cat_angry:";
/* */ }
/* */
/* */
/* */ public String characters() {
/* 23 */ return "";
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 28 */ return Permission.hasPurchasedBridgeBound((Cosmetic)this);
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 33 */ return Permission.none();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 38 */ return (Component)Component.text("Cat Angry Emoji");
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 43 */ return Collection.CAT_DOG_DERBY_2024;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\expressive\CatAngryEmoji.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,51 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.expressive;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.Emoji;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.EmojiCosmetic;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CatCoolEmoji extends EmojiCosmetic {
/* */ public CatCoolEmoji() {
/* 13 */ super(Emoji.CAT_COOL.name());
/* */ }
/* */
/* */ @NotNull
/* */ public String keyword() {
/* 18 */ return ":cat_cool:";
/* */ }
/* */
/* */
/* */ public String characters() {
/* 23 */ return "";
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 28 */ return Permission.hasPurchasedBridgeBound((Cosmetic)this);
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 33 */ return Permission.none();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 38 */ return (Component)Component.text("Cat Cool Emoji");
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 43 */ return Collection.CAT_DOG_DERBY_2024;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\expressive\CatCoolEmoji.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,51 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.expressive;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.Emoji;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.EmojiCosmetic;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CatCrownEmoji extends EmojiCosmetic {
/* */ public CatCrownEmoji() {
/* 13 */ super(Emoji.CAT_CROWN.name());
/* */ }
/* */
/* */ @NotNull
/* */ public String keyword() {
/* 18 */ return ":cat_crown:";
/* */ }
/* */
/* */
/* */ public String characters() {
/* 23 */ return "";
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 28 */ return Permission.hasPurchasedBridgeBound((Cosmetic)this);
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 33 */ return Permission.none();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 38 */ return (Component)Component.text("Cat Crown Emoji");
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 43 */ return Collection.CAT_DOG_DERBY_2024;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\expressive\CatCrownEmoji.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/
@@ -0,0 +1,51 @@
/* */ package com.minehut.cosmetics.cosmetics.collections.expressive;
/* */
/* */ import com.minehut.cosmetics.cosmetics.Collection;
/* */ import com.minehut.cosmetics.cosmetics.Cosmetic;
/* */ import com.minehut.cosmetics.cosmetics.Permission;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.Emoji;
/* */ import com.minehut.cosmetics.cosmetics.types.emoji.EmojiCosmetic;
/* */ import net.kyori.adventure.text.Component;
/* */ import org.jetbrains.annotations.NotNull;
/* */
/* */ public class CatCryEmoji extends EmojiCosmetic {
/* */ public CatCryEmoji() {
/* 13 */ super(Emoji.CAT_CRY.name());
/* */ }
/* */
/* */ @NotNull
/* */ public String keyword() {
/* 18 */ return ":cat_cry:";
/* */ }
/* */
/* */
/* */ public String characters() {
/* 23 */ return "";
/* */ }
/* */
/* */
/* */ public Permission permission() {
/* 28 */ return Permission.hasPurchasedBridgeBound((Cosmetic)this);
/* */ }
/* */
/* */
/* */ public Permission visibility() {
/* 33 */ return Permission.none();
/* */ }
/* */
/* */
/* */ public Component name() {
/* 38 */ return (Component)Component.text("Cat Cry Emoji");
/* */ }
/* */
/* */ @NotNull
/* */ public Collection collection() {
/* 43 */ return Collection.CAT_DOG_DERBY_2024;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\com\minehut\cosmetics\cosmetics\collections\expressive\CatCryEmoji.class
* Java compiler version: 17 (61.0)
* JD-Core Version: 1.1.3
*/

Some files were not shown because too many files have changed in this diff Show More