putIfAbsent

public Object putIfAbsent(String name, Object value)

Throws

If the value, when converted to an NBT type, is TAG_End.

If the supplied name or value are null.