getPropertyValueOrThrow

Gets the value of the given property of the current block state or throws an exception if the current block state does not have the given property.