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

Missing api reasons for entity freezing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 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

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

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

              Created:
              Updated:
              Resolved: