Interface InternalAPIBridge


@Internal public interface InternalAPIBridge
Static bridge to the server internals.

Any and all methods in here are *not* to be called by plugin developers, may change at any time and may generally cause issues when called under unexpected circumstances.

  • Method Details

    • get

      static InternalAPIBridge get()
      Yields the instance of this API bridge by lazily requesting it from the java service loader API.
      Returns:
      the instance.
    • constructLegacyCustomBiome

      @Deprecated(forRemoval=true, since="1.21.5") @ScheduledForRemoval(inVersion="1.22") Biome constructLegacyCustomBiome()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createCombatEntry

      CombatEntry createCombatEntry(LivingEntity entity, DamageSource damageSource, float damage)
    • createCombatEntry

      CombatEntry createCombatEntry(DamageSource damageSource, float damage, @Nullable FallLocationType fallLocationType, float fallDistance)
    • restricted

      Predicate<CommandSourceStack> restricted(Predicate<CommandSourceStack> predicate, boolean restricted)
      Allows overriding default restricted check. Applying this to a command node forcefully prevents or permits this command to be executed from an unattended context, such as click events.
      Parameters:
      predicate - wrapped predicate
      restricted - restricted status of the predicate
      Returns:
      wrapped predicate
    • defaultMannequinProfile

      ResolvableProfile defaultMannequinProfile()
    • allSkinParts

      @Contract(value="-> new", pure=true) SkinParts.Mutable allSkinParts()
    • defaultMannequinDescription

      net.kyori.adventure.text.Component defaultMannequinDescription()
    • legacyGameRuleBridge

      <MODERN,LEGACY> GameRule<LEGACY> legacyGameRuleBridge(GameRule<MODERN> rule, Function<LEGACY,MODERN> fromLegacyToModern, Function<MODERN,LEGACY> toLegacyFromModern, Class<LEGACY> legacyClass)
    • validMannequinPoses

      Set<Pose> validMannequinPoses()
    • createOccupancy

      PoiType.Occupancy createOccupancy(String enumNameEntry)
    • createDamageSourceBuilder

      DamageSource.Builder createDamageSourceBuilder(DamageType damageType)
    • getDamageEffect

      DamageEffect getDamageEffect(String key)
    • getTranslationKey

      String getTranslationKey(EntityType entityType)
    • getSpawnCategory

      SpawnCategory getSpawnCategory(EntityType entityType)
    • getVersionFetcher

      default VersionFetcher getVersionFetcher()
    • deserializeItem

      ItemStack deserializeItem(byte[] data)
    • hasDefaultEntityAttributes

      boolean hasDefaultEntityAttributes(NamespacedKey entityKey)
    • getDefaultEntityAttributes

      Attributable getDefaultEntityAttributes(NamespacedKey entityKey)
    • getStatisticCriteriaKey

      String getStatisticCriteriaKey(Statistic statistic)
    • createPluginLifecycleEventManager

      LifecycleEventManager<Plugin> createPluginLifecycleEventManager(JavaPlugin plugin, BooleanSupplier registrationCheck)
    • createEmptyStack

      ItemStack createEmptyStack()
    • resolveWithContext

      net.kyori.adventure.text.Component resolveWithContext(net.kyori.adventure.text.Component component, @Nullable CommandSender context, @Nullable Entity scoreboardSubject, boolean bypassPermissions) throws IOException
      Throws:
      IOException
    • componentFlattener

      net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener()
    • createPersistentDataKey

      <C> PersistentDataKey<C> createPersistentDataKey(net.kyori.adventure.key.Key key, PersistentDataType<?,C> type)