From b8bbf3b97a8c95dfd7f1438723e13e11fddd7f6f Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Thu, 8 Aug 2024 04:03:14 +0800 Subject: [PATCH] 1.3.1 --- .../elementoriginlib/util/SkullBuilder.java | 23 +++++++++++++++++++ src/main/resources/plugin.yml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/io/yutian/elementoriginlib/util/SkullBuilder.java diff --git a/src/main/java/com/io/yutian/elementoriginlib/util/SkullBuilder.java b/src/main/java/com/io/yutian/elementoriginlib/util/SkullBuilder.java new file mode 100644 index 0000000..9fdbffc --- /dev/null +++ b/src/main/java/com/io/yutian/elementoriginlib/util/SkullBuilder.java @@ -0,0 +1,23 @@ +package com.io.yutian.elementoriginlib.util; + +import org.bukkit.Material; + +import java.util.UUID; + +public class SkullBuilder extends ItemStackBuilder { + + public SkullBuilder() { + super(Material.PLAYER_HEAD); + } + + public SkullBuilder(String textures) { + super(Material.PLAYER_HEAD); + setSkullTextures(textures); + } + + public SkullBuilder(UUID uuid) { + super(Material.PLAYER_HEAD); + setSkullOwner(uuid); + } + +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index bede30c..ffda2a4 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: ElementOriginLib -version: '1.3' +version: '1.3.1' main: com.io.yutian.elementoriginlib.ElementOriginLib api-version: '1.20' authors: [ SuperYuTian ]