Interface InternalAPIBridge


@Internal @NullMarked 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 Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    get()
    Yields the instance of this API bridge by lazily requesting it from the java service loader API.
    Creates a damage effect instance for the passed key.
  • 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.
    • getDamageEffect

      DamageEffect getDamageEffect(String key)
      Creates a damage effect instance for the passed key.
      Parameters:
      key - the string key.
      Returns:
      the damage effect.
    • 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.
      Constructs the legacy custom biome instance for the biome enum.
      Returns:
      the created biome.