src/main/java/adris/altoclef/trackers/EntityTracker.java
/**
     * Squash a class that may have sub classes into one distinguishable class type.
     * For ease of use.
     * @param type: An entity class that may have a 'simpler' class to squash to
     * @return what the given entity class should be read as/catalogued as.
     */
Squash a class that may have sub classes into one distinguishable class type.
For ease of use.
@param type: An entity class that may have a 'simpler' class to squash to
@return what the given entity class should be read as/catalogued as.
Squash a class that may have sub classes into one distinguishable class type . For ease of use . @param type : An entity class that may have a ' simpler ' class to squash to @return what the given entity class should be read as / catalogued as .
private static Class squashType(Class type) {
        if (PlayerEntity.class.isAssignableFrom(type)) {
            return PlayerEntity.class;
        }
        return type;
    }
private static Class squashType ( Class type ) { if ( PlayerEntity . class . isAssignableFrom ( type ) ) { return PlayerEntity . class ; } return type ; }
Squash a class that may have sub classes into one distinguishable class type.
Squash a class that may have sub classes into one distinguishable class type .
// Squash types for ease of use