Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6623

Missing api reasons for entity freezing

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • This server is running CraftBukkit version 3169-Spigot-a483d2c-07ed44a (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
    • Yes

    Description

      Currently the reason will return as UNKNOWN/DEFAULT as the new reason hasn't been implemented. Vanilla mechanic is that skeletons freeze and convert to strays.

      Suggestion as to API/implementation. No commit credit is necessary as the code suggested is extremely generic, just wanting the change implemented.

      In EntityTransformEvent.

      /**

      • When an entity freezes in powder snow and a new entity spawns.
        */
        FREEZE,

       

      In CreatureSpawnEvent.

      /**

      • When a creature is spawned by another entity freezing.
        */
        FREEZE,

       

      For implementation. In EntitySkeleton, around Line 89.

      this.a(EntityTypes.STRAY, true, EntityTransformEvent.TransformReason.FREEZE, CreatureSpawnEvent.SpawnReason.FREEZE);

      Attachments

        Activity

          People

            Unassigned Unassigned
            chickeneer chickeneer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: