Missing api reasons for entity freezing

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • This server is running CraftBukkit version 3169-Spigot-a483d2c-07ed44a (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
    • Yes

      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);

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

              Created:
              Updated:
              Resolved: