craftutils.observation.field.Field.get_object(name: str, allow_missing: bool) Object | None

Retrieves the named object from the field’s object dictionary.

Parameters
name: str

Name of object.

allow_missing: bool

return None for a missing object instead of throwing an error.

Returns

Requested object.