mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-03 06:28:53 +00:00
Add structure block
This commit is contained in:
4 files changed
+14
-2096
No files matched your search
+11
-8
@@ -1,15 +1,16 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
import net.minecrell.gradle.licenser.LicenseExtension
|
import org.cadixdev.gradle.licenser.LicenseExtension
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("net.minecrell.licenser") version "0.4.1"
|
id("java-library")
|
||||||
|
id("org.cadixdev.licenser") version "0.5.0"
|
||||||
id("com.github.johnrengelman.shadow") version "6.1.0"
|
id("com.github.johnrengelman.shadow") version "6.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
configure<JavaPluginConvention> {
|
configure<JavaPluginConvention> {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = sourceCompatibility
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -30,10 +31,11 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
"compileOnly"("org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT")
|
compileOnlyApi("org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT")
|
||||||
"implementation"("com.mojang:authlib:1.5.25")
|
compileOnlyApi("com.mojang:authlib:1.5.25")
|
||||||
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
implementation("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
||||||
"compile"("org.bstats:bstats-bukkit:1.8")
|
implementation("org.bstats:bstats-bukkit:1.8")
|
||||||
|
implementation("com.github.cryptomorin:XSeries:7.8.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "2.0.0"
|
version = "2.0.0"
|
||||||
@@ -44,6 +46,8 @@ tasks.named<ShadowJar>("shadowJar") {
|
|||||||
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
||||||
include(dependency("org.slf4j:slf4j-api"))
|
include(dependency("org.slf4j:slf4j-api"))
|
||||||
include(dependency("org.bstats:bstats-bukkit:1.8"))
|
include(dependency("org.bstats:bstats-bukkit:1.8"))
|
||||||
|
include(dependency("com.github.cryptomorin:XSeries:7.8.0"))
|
||||||
|
relocate("com.cryptomorin.xseries", "net.arcaniax.utils")
|
||||||
relocate("org.apache.logging.slf4j", "net.arcaniax.logging.apache")
|
relocate("org.apache.logging.slf4j", "net.arcaniax.logging.apache")
|
||||||
relocate("org.slf4j", "net.arcaniax.logging.slf4j")
|
relocate("org.slf4j", "net.arcaniax.logging.slf4j")
|
||||||
relocate("org.bstats", "net.arcaniax.metrics")
|
relocate("org.bstats", "net.arcaniax.metrics")
|
||||||
@@ -54,7 +58,6 @@ configure<LicenseExtension> {
|
|||||||
header = rootProject.file("HEADER")
|
header = rootProject.file("HEADER")
|
||||||
newLine = false
|
newLine = false
|
||||||
include("**/*.java")
|
include("**/*.java")
|
||||||
exclude("**/XMaterial.java")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named<Copy>("processResources") {
|
tasks.named<Copy>("processResources") {
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public class SecretBlockMenuProvider implements InventoryProvider {
|
|||||||
private static final ItemStack DRAGON_EGG = Items.create(Material.DRAGON_EGG, (short) 0, 1, ChatColor.LIGHT_PURPLE + "Dragon Egg", "");
|
private static final ItemStack DRAGON_EGG = Items.create(Material.DRAGON_EGG, (short) 0, 1, ChatColor.LIGHT_PURPLE + "Dragon Egg", "");
|
||||||
private static final ItemStack STRUCTURE_VOID = Items.create(Material.STRUCTURE_VOID, (short) 0, 1, ChatColor.DARK_AQUA + "Structure Void", "");
|
private static final ItemStack STRUCTURE_VOID = Items.create(Material.STRUCTURE_VOID, (short) 0, 1, ChatColor.DARK_AQUA + "Structure Void", "");
|
||||||
private static final ItemStack DEBUG_STICK = Items.create(Material.DEBUG_STICK, (short) 0, 1, ChatColor.AQUA + "Debug Stick", "&7Only works as operator in creative.");
|
private static final ItemStack DEBUG_STICK = Items.create(Material.DEBUG_STICK, (short) 0, 1, ChatColor.AQUA + "Debug Stick", "&7Only works as operator in creative.");
|
||||||
|
private static final ItemStack STRUCTURE_BLOCK = Items.create(Material.STRUCTURE_BLOCK, (short) 0, 1, ChatColor.AQUA + "Structure Block", "");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(Player player, InventoryContents contents) {
|
public void init(Player player, InventoryContents contents) {
|
||||||
@@ -47,6 +48,7 @@ public class SecretBlockMenuProvider implements InventoryProvider {
|
|||||||
contents.set(0, 2, ClickableItem.of(BARRIER, inventoryClickEvent -> player.getInventory().addItem(BARRIER)));
|
contents.set(0, 2, ClickableItem.of(BARRIER, inventoryClickEvent -> player.getInventory().addItem(BARRIER)));
|
||||||
contents.set(0, 3, ClickableItem.of(STRUCTURE_VOID, inventoryClickEvent -> player.getInventory().addItem(STRUCTURE_VOID)));
|
contents.set(0, 3, ClickableItem.of(STRUCTURE_VOID, inventoryClickEvent -> player.getInventory().addItem(STRUCTURE_VOID)));
|
||||||
contents.set(0, 4, ClickableItem.of(DRAGON_EGG, inventoryClickEvent -> player.getInventory().addItem(DRAGON_EGG)));
|
contents.set(0, 4, ClickableItem.of(DRAGON_EGG, inventoryClickEvent -> player.getInventory().addItem(DRAGON_EGG)));
|
||||||
|
contents.set(0, 5, ClickableItem.of(STRUCTURE_BLOCK, inventoryClickEvent -> player.getInventory().addItem(STRUCTURE_BLOCK)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
package net.arcaniax.buildersutilities.utils;
|
package net.arcaniax.buildersutilities.utils;
|
||||||
|
|
||||||
|
import com.cryptomorin.xseries.XMaterial;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.DyeColor;
|
import org.bukkit.DyeColor;
|
||||||
import org.bukkit.block.banner.Pattern;
|
import org.bukkit.block.banner.Pattern;
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user