This commit is contained in:
nulli0n committed 2025-07-14 17:10:39 +05:00
1 parent fd3cdb4529
commit abc8d5d054
25 files changed
+364 -54

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@
<parent>
<groupId>su.nightexpress.nightcore</groupId>
<artifactId>nightcore</artifactId>
<version>2.7.9</version>
<version>2.7.10</version>
</parent>
<artifactId>bridge</artifactId>
@@ -35,7 +35,7 @@
<dependency>
<groupId>su.nightexpress.nightcore</groupId>
<artifactId>utils</artifactId>
<version>2.7.9</version>
<version>2.7.10</version>
</dependency>
</dependencies>
@@ -0,0 +1,20 @@
package su.nightexpress.nightcore.bridge.wrap;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
public interface NightSound {
boolean isSilent();
void play(@NotNull Player player);
void play(@NotNull Location location);
@NotNull String getName();
float getVolume();
float getPitch();
}
@@ -72,8 +72,8 @@ public interface RegistryType<T extends Keyed> {
class Paper {
public static final RegistryType<DataComponentType> DATA_COMPONENT_TYPE = type(isSpigot -> forPaper(RegistryKey.DATA_COMPONENT_TYPE));
public static final RegistryType<Wolf.SoundVariant> WOLF_SOUND_VARIANT = type(isSpigot -> forPaper(RegistryKey.WOLF_SOUND_VARIANT));
public static final RegistryType<MemoryKey<?>> MEMORY_MODULE_TYPE = type(isSpigot -> forPaper(RegistryKey.MEMORY_MODULE_TYPE));
public static final RegistryType<Wolf.SoundVariant> WOLF_SOUND_VARIANT = type(isSpigot -> forPaper(RegistryKey.WOLF_SOUND_VARIANT));
}
@NotNull Registry<@NotNull T> getRegistry();
@@ -6,6 +6,7 @@ import org.bukkit.attribute.Attribute;
import org.bukkit.command.Command;
import org.bukkit.command.SimpleCommandMap;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.inventory.InventoryView;
@@ -78,6 +79,11 @@ public interface Software {
@NotNull String getTranslationKey(@NotNull PotionEffectType effectType);
void setCustomName(@NotNull Entity entity, @NotNull NightComponent component);
@Nullable String getEntityName(@NotNull Entity entity);
@NotNull ItemStack setType(@NotNull ItemStack itemStack, @NotNull Material material);
void editMeta(@NotNull ItemStack itemStack, @NotNull Consumer<ItemMeta> consumer);