fix: fixed wrong Java version in EnvironmentEx
This commit is contained in:
BIN
environmentex/.DS_Store
vendored
BIN
environmentex/.DS_Store
vendored
Binary file not shown.
BIN
environmentex/bew.jar
Normal file
BIN
environmentex/bew.jar
Normal file
Binary file not shown.
@@ -27,7 +27,7 @@ tasks {
|
||||
|
||||
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
|
||||
// See https://openjdk.java.net/jeps/247 for more information.
|
||||
options.release.set(22)
|
||||
options.release.set(21)
|
||||
}
|
||||
javadoc {
|
||||
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
||||
|
||||
Binary file not shown.
BIN
environmentex/environmentex2.jar
Normal file
BIN
environmentex/environmentex2.jar
Normal file
Binary file not shown.
@@ -184,8 +184,6 @@ public class App extends JavaPlugin {
|
||||
eBottle = new ItemStack(Material.GLASS_BOTTLE, 1);
|
||||
ItemMeta eBottleMeta = eBottle.getItemMeta();
|
||||
nskGlow = new NamespacedKey(App.main, "key" + "R3SExpBottleEXP_GLOW");
|
||||
Glow glow = new Glow(nskGlow);
|
||||
eBottleMeta.addEnchant(glow, 1, true);
|
||||
eBottleMeta.displayName(Component.translatable(ChatColor.AQUA + "Leeres Erfahrungsfläschchen"));
|
||||
eBottleMeta.getPersistentDataContainer().set(nskEmptyExpBottle, PersistentDataType.STRING,
|
||||
"R3S_Empty_ExpBottle");
|
||||
@@ -247,8 +245,7 @@ public class App extends JavaPlugin {
|
||||
* }
|
||||
*/
|
||||
|
||||
registerGlow();
|
||||
|
||||
|
||||
Inventory playerInv = Bukkit.createInventory(null, InventoryType.PLAYER);
|
||||
playerInv.addItem(new ItemStack(Material.BIRCH_PLANKS, 24));
|
||||
playerInv.addItem(new ItemStack(Material.WARPED_PLANKS, 43));
|
||||
@@ -464,22 +461,6 @@ public class App extends JavaPlugin {
|
||||
App.main.getLogger().info(msg.toString());
|
||||
}
|
||||
|
||||
public void registerGlow() {
|
||||
/* try {
|
||||
Field f = Enchantment.class.getDeclaredField("acceptingNew");
|
||||
f.setAccessible(true);
|
||||
f.set(null, true);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
Glow glow = new Glow(nskGlow);
|
||||
Enchantment.registerEnchantment(glow);
|
||||
} catch (IllegalArgumentException e) {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
}
|
||||
|
||||
public static Boolean isDay() {
|
||||
|
||||
|
||||
@@ -1,172 +0,0 @@
|
||||
package de.hessj.environmentex;
|
||||
|
||||
import java.util.Set;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.enchantments.EnchantmentTarget;
|
||||
import org.bukkit.entity.EntityCategory;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.inventory.EquipmentSlot;
|
||||
import org.bukkit.inventory.EquipmentSlotGroup;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.ItemType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import io.papermc.paper.enchantments.EnchantmentRarity;
|
||||
import io.papermc.paper.registry.set.RegistryKeySet;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
||||
public class Glow extends Enchantment {
|
||||
|
||||
public Glow(@NotNull NamespacedKey key) {
|
||||
super(); }
|
||||
|
||||
@Override
|
||||
public @NotNull String translationKey() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canEnchantItem(@NotNull ItemStack arg0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean conflictsWith(@NotNull Enchantment arg0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull Component displayName(int arg0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull Set<EquipmentSlot> getActiveSlots() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDamageIncrease(int arg0, @NotNull EntityCategory arg1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull EnchantmentTarget getItemTarget() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxLevel() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String getName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull EnchantmentRarity getRarity() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getStartLevel() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCursed() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDiscoverable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTradeable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTreasure() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull NamespacedKey getKey() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getKey'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String getTranslationKey() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getTranslationKey'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinModifiedCost(int level) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getMinModifiedCost'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxModifiedCost(int level) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getMaxModifiedCost'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAnvilCost() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getAnvilCost'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDamageIncrease(int level, @NotNull EntityType entityType) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getDamageIncrease'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull Set<EquipmentSlotGroup> getActiveSlotGroups() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getActiveSlotGroups'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull Component description() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'description'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull RegistryKeySet<ItemType> getSupportedItems() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getSupportedItems'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable RegistryKeySet<ItemType> getPrimaryItems() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getPrimaryItems'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWeight() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getWeight'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull RegistryKeySet<Enchantment> getExclusiveWith() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getExclusiveWith'");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user