MCPcopy
hub / github.com/libgdx/libgdx / getByType

Method getByType

gdx/src/com/badlogic/gdx/maps/MapLayers.java:83–85  ·  view source on GitHub ↗

@param type @return array with all the layers matching type

(Class<T> type)

Source from the content-addressed store, hash-verified

81 /** @param type
82 * @return array with all the layers matching type */
83 public <T extends MapLayer> Array<T> getByType (Class<T> type) {
84 return getByType(type, new Array<T>());
85 }
86
87 /** @param type
88 * @param fill array to be filled with the matching layers

Callers 2

loadTiledMapMethod · 0.45
loadTiledMapMethod · 0.45

Calls 4

isInstanceMethod · 0.95
clearMethod · 0.65
getMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected