MiniaturePets / Issues

This repository is used to keep track of issues posted by the community.
https://github.com/MiniaturePets/Issues/issues
6 stars 2 forks source link

[Feature Request] Expand method for API use #352

Closed rudde0 closed 1 year ago

rudde0 commented 1 year ago

Feature Request

General Information

Feature Description I need to access parts variable in CustomEntityInstance for my vanish system. Please consider making parts public or add this method:

    public ArrayList<ArmorStand> getParts() {
        ArrayList<ArmorStand> armorStands = new ArrayList<ArmorStand>();
        for (Map.Entry<String, ArmorStandLocation> entry : this.parts.entrySet()) {
            armorStands.add(entry.getValue().getArmorStand());
        }
        return armorStands;
    }

This method will be very helpful for developers who need to access parts of the pet.

GC-spigot commented 1 year ago

Added