diff --git a/src/org/apollo/game/model/area/Sector.java b/src/org/apollo/game/model/area/Sector.java index 642ef928..3c0b3e89 100644 --- a/src/org/apollo/game/model/area/Sector.java +++ b/src/org/apollo/game/model/area/Sector.java @@ -146,6 +146,17 @@ public final class Sector { return ImmutableSet.copyOf(filtered); } + /** + * Gets the {@link CollisionMatrix} at the specified height level. + * + * @param height The height level. + * @return The CollisionMatrix. + */ + public CollisionMatrix getMatrix(int height) { + Preconditions.checkElementIndex(height, matrices.length, "Matrix height level must be [0, " + matrices.length + ")."); + return matrices[height]; + } + /** * Moves the {@link Entity} that was in the specified {@code old} {@link Position}, to the current position of the * Entity.