@Override
    public IndexShortBuffer put(int i, int value) {
        assert value >= 0 && value <= maxValue 
                : "IndexBuffer was created with elements too small for value="
                + value;

        buf.put(i, (short) value);
        return this;
    }
Instantiate an IndexBuffer using the specified ShortBuffer and set its
maximum index value.

@param buffer a pre-existing buffer (not null, alias created)
@param maxValue the desired maximum index value (&ge;0, &le;65_535)
jme3-core/src/main/java/com/jme3/scene/mesh/IndexShortBuffer.java