getCompound

public NBTCompound getCompound(String name)

Return

The nested NBT compound associated with the name. If a tag with that name does not exist (or is not a compound), then null is returned.

See also

get(Object)

Parameters

name

The name of the compound whose value should be returned. Dot-notation is supported for accessing nested tags.