Interface FireDurationAccessor


public interface FireDurationAccessor
Duck interface facilitating the storage and retrieval of custom burn durations (in seconds) on an entity, used by SetFireDurationEffect.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Retrieves the stored custom fire duration in seconds.
    void
    Assigns the duration in seconds for which the entity should burn upon impact or ignition.
  • Method Details

    • enchantment_core$setFireDuration

      void enchantment_core$setFireDuration(float seconds)
      Assigns the duration in seconds for which the entity should burn upon impact or ignition.
      Parameters:
      seconds - The fire duration in seconds.
    • enchantment_core$getFireDuration

      float enchantment_core$getFireDuration()
      Retrieves the stored custom fire duration in seconds.
      Returns:
      The fire duration in seconds.